[Coin-discuss] Additional linker options

Lou Hafer lou at cs.sfu.ca
Thu Jan 11 12:03:41 EST 2007


Yan,

	The error you're seeing (`C compiler cannot create executables') is one
of the very first tests performed by the configure script --- as the message
says, it's checking to see if the compiler can compile and link a trivial
program,

int main ()
{ ;
  return 0; }
	
	The command that's used is

$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS

where CC is the name of the C compiler, CPPFLAGS are C preprocessing flags, 
CFLAGS are C compile flags, LDFLAGS are link flags, LIBS are extra libraries,
and ac_ext will be the C source file extension.

You can see where your LDFLAGS definitions are being applied.  Esben's comment
that the flags you've given are incorrect for your platform is likely correct,
but ...  to say anything intelligent here, you need to take the time to give us
a bit more information.  What platform (OS/compiler) are you building on?  What
project are you trying to augment?  What does config.log say?  (It will show you
the expanded commands, with shell variables expanded.)  Did you check the output
of `configure --help=recursive' to see if there are any hooks for project-
specific link options?

							Lou




More information about the Coin-discuss mailing list