PRIEUR Christophe RD-TECH-ISS wrote:
> Okay! You're right, it works. I guess some versions of gcc are a bit
> more open-minded on this issue (trying to save my self-esteem of old C
> programmer).
It has nothing to do with gcc. It's a property of the linker (ld) which
is a separate external pro
> 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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
PRIEUR Christophe RD-TECH-ISS wrote:
> Here is my command line:
> gcc -I"/usr/include/glib-2.0" -l glib-2.0 TestGLib.c
gcc -o TestGLib.o TestGLib.c `pkg-config --cflags --libs glib-2.0`
(And for your own sake, don't move around files; everything ha
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 objec
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
5 matches
Mail list logo