Change in command line order behaviour

Richard Henderson rth@cygnus.com
Wed Nov 12 22:37:00 GMT 1997


On Wed, Nov 12, 1997 at 06:52:23PM -0700, teunis wrote:
> gcc (not ld but gcc [ld DOES have this]) has never had this problem...

Yes it has; gcc does not change ld's operation.

> It's probably a bug!

No it isn't.  That's intended operation of static libraries.

Note that if you use shared libraries, things will act a bit
different, but the fact remains that you have never been able
to expect

  cc -lfoo main.c

to work.


r~



More information about the Gcc mailing list