gcc with glib

Brian Dessent brian@dessent.net
Thu Jun 14 14:50:00 GMT 2007


PRIEUR Christophe RD-TECH-ISS wrote:

> Here is my command line:
> gcc -I"/usr/include/glib-2.0" -l glib-2.0 TestGLib.c

The order of arguments of your command is wrong.  The linker works from
left to right, resolving undefined references as it goes.  If it sees a
library specified before any objects using symbols from that library, it
won't include anything from the library.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list