Results 1 to 2 of 2
I want to get into GTK+2.0 C++ programming so that I can make GUI's for random linux utillities (for the other newbs). However, whenever I try to compile my programs ...
- 12-10-2006 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
g++ include paths
I want to get into GTK+2.0 C++ programming so that I can make GUI's for random linux utillities (for the other newbs). However, whenever I try to compile my programs with the #include <gtk/gtk.h> or whatever it is, I get an include file not found error, which, obviously, is a problem for GTK programming. How do I add /usr/include/gtk to my default g++/gcc include search paths?
- 12-10-2006 #2
From the Gtk+ 2.0 Tutorial:
Try using this:
Code:g++ -Wall -g FILES -o helloworld `pkg-config --cflags gtk+-2.0` \ `pkg-config --libs gtk+-2.0`
DISTRO=Arch
Registered Linux User #388732


Reply With Quote