jarlath
April 4th, 2008, 10:53 AM
I'm trying to compile a helloworld gtk example from a book using the command:
gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags gtk+-2.0` \ `pkg-config --libs gtk+-2.0`
I get the output:
gcc: -lgtk-x11-2.0: No such file or directory
But I did find:
jarlath@jarlath-laptop:~$ sudo locate gtk-x11
[sudo] password for jarlath:
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0.1200.9
also, running the first pkg-config argument alone results in:
jarlath@jarlath-laptop:~$ `pkg-config --cflags gtk+-2.0`
bash: -I/usr/include/gtk-2.0: No such file or directory
Yet I found this folder:
jarlath@jarlath-laptop:~$ cd /usr/include/gtk-2.0/
jarlath@jarlath-laptop:/usr/include/gtk-2.0$ ls
gdk gdk-pixbuf gdk-pixbuf-xlib gtk
I'm completely stumped. Can anyone help me out?
Regards,
Jarlath
gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags gtk+-2.0` \ `pkg-config --libs gtk+-2.0`
I get the output:
gcc: -lgtk-x11-2.0: No such file or directory
But I did find:
jarlath@jarlath-laptop:~$ sudo locate gtk-x11
[sudo] password for jarlath:
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0.1200.9
also, running the first pkg-config argument alone results in:
jarlath@jarlath-laptop:~$ `pkg-config --cflags gtk+-2.0`
bash: -I/usr/include/gtk-2.0: No such file or directory
Yet I found this folder:
jarlath@jarlath-laptop:~$ cd /usr/include/gtk-2.0/
jarlath@jarlath-laptop:/usr/include/gtk-2.0$ ls
gdk gdk-pixbuf gdk-pixbuf-xlib gtk
I'm completely stumped. Can anyone help me out?
Regards,
Jarlath