Click to See Complete Forum and Search --> : problems with gcc. what am i doing wrong???


mobydick
08-30-2002, 02:51 PM
I am trying to compile a basic gtk+ program (just displays an empty window) and I keep running into a brick wall.When I try to compile the program by typing in: gcc -wall -g window.c -o window 'gtk-config --cflags' 'gtk-config --libs' , and i get the warning ' error: gtk/gtk.h, no such file or directory, glib.h no such file or directory.
I am running slackware 8.1 with gcc version 2.95.3.Can somebody PLEASE tell me what I am doing wrong!!!
thanks!:D :D :D

bwkaz
08-30-2002, 03:38 PM
Do you have gtk+-devel installed? It looks like you don't...

Otherwise, what's the ouput of just running gtk-config --cflags and --libs manually?

binaryDigit
08-30-2002, 10:21 PM
first do try running gtk-config --cflags and gtk-config --libs.
if it works then make sure your using the " ` " and not the " ' "
that's what got me the first time.
so:
`gtk-config --cflags --libs`
not:
'gtk-config --cflags --libs'