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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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'

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
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.
lortegaAuthor Commented:

note: I should send and email to the books writer... ;-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.