On 07/18/2011 04:39 PM, Ray Dillinger wrote: >> plus, your example will fail when using -Wl,--as-needed. move the > library behind >> the objects. > > Okay... The synopsis of gcc in the man page says the file to be > compiled should come last in the compile line. That's the only thing > I can see here that could be called an "object". No, the manual page says "infile...".