I've set up the eclipse cdt and it successfully compiled the hello world program. I'm not trying to run this simple GTK program:
Code:
/*
*File name: window.c
*/
#include <gtk/gtk.h>
#include <glib.h>
int main (int argc, char *argv[])
{
/*-- Declare the GTK Widgets used in the program --*/
GtkWidget *window;
/*-- Initialize GTK --*/
gtk_init (&argc, &argv);
/*-- Create the new window --*/
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
/*-- Display the window --*/
gtk_widget_show(window);
/*-- Start the GTK event loop --*/
gtk_main();
/*-- Return 0 if exit is successful --*/
return 0;
}
I get the No such file or directory errors on gtk/gtk.h and glib.h includes and I'm sure it's because I don't have my Project build setting set up right. I've tried appending several extended commands to the g++ build string with no success. Anyone know how to set up the Eclipse CDT to be able to compile GTK programs? Thanks in advanced for any serious replies!
David Cheeseman