Image

Imagetcp wrote in Imagelinux

gtk help

I'm starting to learn how to use GTK within my C programming, and I been doing everything right since, but when I tried to compile a program, I get this error from the compiler saying this:

gcc: pkg-config --cflags --libs gtk+-2.0: file or directory doesn't exist

the command I use to compile is:
gcc -o base base.c 'pkg-config --cflags --libs gtk+-2.0'

when I run the command pkg-config --cflags --libs gtk+-2.0, it seems to work well alone, in the console. and it's not a problem with the gtk+-2.0.pc file, I'm sure of it, cause I've compiled several programs before like GAIM, and logjam that use gtk+-2.0 to link to the proper gtk files. any suggesstions?