RE: gcc with glib

2007-06-15 Thread PRIEUR Christophe RD-TECH-ISS
> From: Brian Dessent [mailto:[EMAIL PROTECTED] > > > 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

gcc with glib

2007-06-14 Thread PRIEUR Christophe RD-TECH-ISS
Hi there, I'm trying to compile some C program using glib 2.0 and i have some trouble. Here is my command line: gcc -I"/usr/include/glib-2.0" -l glib-2.0 TestGLib.c First gcc told me it didn't find glibconfig.h, that happened to be in an awkward directory, namely /usr/lib/glib-2.0/include/ Awkw