Hi All,
I downloaded gtk2.0 using fink. I was working on a tutorial for gtk however for some reason I seem to be unable to compile the gtk properly. If I did my research correctly the way you compile a gtk file in xterm is as follows:
gcc code.c -o code `pkg-config --cflags --libs gtk+-2.0'
However, this gives me the error that there is " gcc: no such file or directory called pkg-config" and then lists the file errors as a result of not finding pkg-config. So I'm guessing that I don't have pkg-config properly installed or installed at all.
Plz, if pkg-config needs to be installed separately from gtk where do I get it? And what do I need to do to get a file such as 'code.c' to compile? Thanks
Cheers,
ScKaSx
I downloaded gtk2.0 using fink. I was working on a tutorial for gtk however for some reason I seem to be unable to compile the gtk properly. If I did my research correctly the way you compile a gtk file in xterm is as follows:
gcc code.c -o code `pkg-config --cflags --libs gtk+-2.0'
However, this gives me the error that there is " gcc: no such file or directory called pkg-config" and then lists the file errors as a result of not finding pkg-config. So I'm guessing that I don't have pkg-config properly installed or installed at all.
Plz, if pkg-config needs to be installed separately from gtk where do I get it? And what do I need to do to get a file such as 'code.c' to compile? Thanks
Cheers,
ScKaSx