View Full Version : Using GTK+ with Code::Blocks

June 8th, 2010, 01:03 AM
I came across GTK recently, and would like to start using it. I've had quite a bit of experience with C (I'm not an expert by any means, but I've gone through a few books) and am growing bored of simple terminal applications. I've been programming entirely on Windows up until this point in time, but am migrating to Linux. I've been using Code::Blocks for quite some time, so have been attempting to use this; if there's any simple IDE's out there that are recommended, feel free to let me know.

Anyways, on to my problem. I installed GTK+ and glib using:

git clone git://git.gnome.org/gtk+

git clone git://git.gnome.org/glib

I also installed Code::Blocks. I followed the "Hello World" tutorial on the GTK.org website, and went to compile. I got an error saying "gtk/gtk.h not found", or something to that effect. Having not used Linux much, I'm not sure how get the IDE to access the appropriate libraries I need. Any suggestions would be much appreciated.

Thanks in advance; sorry if this has been covered before.

- Jesse

June 8th, 2010, 03:10 AM

Nevermind, got it working.