Results 1 to 2 of 2
Hello, I'm learning GTK , and would like to use Codeblocks, and/or KDEvelop, and compile my c files using that, but always get an error about gtk/gtk.h not found, but ...
- 02-27-2011 #1Just Joined!
- Join Date
- May 2008
- Posts
- 34
GTK Sources
Hello, I'm learning GTK , and would like to use Codeblocks, and/or KDEvelop, and compile my c files using that, but always get an error about gtk/gtk.h not found, but can't figure out how to add the commands... I normally type gcc -o Program1 main.c `pkg-config --libs --cflags gtk+-2.0` That's a lot to type every time to compile.. Isn't there an easier way, in KDevelop, Monodevelop, and/or Codeblocks to make this step quicker, by adding some sort of I-/usr/include commands, or something?? thanks in advance, =). I looked online for some results, but didn't come across anything handy..
- 03-02-2011 #2
Well, there's a simpler solution and that's to use bash's alias facility. Put into your .bashrc file|:
and then you can compile any gtk program by typing "compile output input.c"Code:alias compile="gcc \`pkg-config gtk+-2.0 --cflags --libs\` -o "
"I'm just a little old lady; don't try to dazzle me with jargon!"


Reply With Quote