loell
September 1st, 2006, 01:04 AM
i installed kdevelop and copy paste this in
main.c inside a project
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}
from here (http://www.gtk.org/tutorial/c39.html)
yes the code does compile successfuly if compiled from the command line with this
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
i've read a little about the kdevelop docs, but i can't seem to compile this from Kdevelop IDE
i keep geting this error
error: gtk/gtk.h: No such file or directory
and yes i have the gtk-dev installed. perhaps some of you know a little bit about makefiles?
main.c inside a project
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}
from here (http://www.gtk.org/tutorial/c39.html)
yes the code does compile successfuly if compiled from the command line with this
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
i've read a little about the kdevelop docs, but i can't seem to compile this from Kdevelop IDE
i keep geting this error
error: gtk/gtk.h: No such file or directory
and yes i have the gtk-dev installed. perhaps some of you know a little bit about makefiles?