Thank you! I know it would be trivial for some people...
Nevermind about the attachments, the C version works fine anyway so the
problem probably comes from ctypes...
Have a nice day
2015-03-27 11:43 GMT+01:00 Nicola Fontana :
> Il Fri, 27 Mar 2015 11:31:59 +0100 Bruno Cauet
> scrisse:
>
> > Hi,
Il Fri, 27 Mar 2015 11:31:59 +0100 Bruno Cauet scrisse:
> Hi,
> 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
> /usr/bin/ld: /usr/lib/libgio-2.0.so: undefined reference to symbol
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
Hi,
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
/usr/bin/ld: /usr/lib/libgio-2.0.so: undefined reference to symbol
'g_object_unref'
/usr/lib/libgobject-2.0.so.0: error adding symbols: