Re: Simple glib compilation problem: DSO missing from command line



Le 27 mars 2015, Bruno Cauet a écrit :
I'm having trouble compiling stuff with glib. Here it is:
$ LANG=C gcc -I /usr/include/glib-2.0  -I /usr/lib/glib-2.0/include -L
/usr/lib -l gio-2.0 segfault.c

Maybe:

$ GTKHDR=$(pkg-config --cflags gtk+-2.0)
$ GTKLIB=$(pkg-config --libs gtk+-2.0)
$ LANG=C gcc $GTKHDR segfault.c $GTKLIB

-l options must come after source files I think.

--
Lucas Levrel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]