On Tue, Apr 1, 2008 at 6:06 PM, Tijl Vercaemer <[EMAIL PROTECTED]> wrote:
>  This works, and it helped me to figure out why my code didn't link.
>  Apparently, the -lws2 option should be at the end of the command. I
>  had my -lws2 in between the -o option and the input file. Moving it
>  after the input file, solved my problem.

That's a general gcc feature, the order of libraries and objects is
important. When gcc sees a library on the commandline, only those
parts of it that have already been referenced by a  previous library
or object file are included. In your case the library was skipped
completely since nothing had referenced any of its functions yet.

Kind regards,
Carsten Sorensen

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to