gtk problem!

when I try to compile my program using

gcc -Wall -g myptog.c -o myprog 'gtk-config -cflags' 'gtk-config -libs'

I receive a message like gtk-config don't recognize the parameters... the same message that I receive if I enter
gtk-config on the promopt....

any suggestion?

thanks,
luis
LVL 2
lortegaAsked:
Who is Participating?
 
pwhite76Connect With a Mentor Commented:
You should be using two dashes before the cflags and libs options:

gcc -Wall -g myptog.c -o myprog 'gtk-config --cflags' 'gtk-config --libs'
0
 
NullStreamCommented:
You need 2 dashes (--cflags --libs).
As well try to separate you compiling from your linking as it will make your life much easier when dealing with multiple files.
eg.
gcc -Wall -g myproc.c `gtk --cflags`

gcc -o myprog myprog.o `gtk --libs`

Makefiles are your friends. Check 'em out or send me an email and I'll give you a brief introduction to them.  They have saved me thousands of keystrokes and millions of units of patience.
0
 
lortegaAuthor Commented:
thanks...


note: I should send and email to the books writer... ;-)
0
All Courses

From novice to tech pro — start learning today.