This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc with glib


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]