gtk+ and eclipse problems

2008-03-25 Thread Roman Makurin
Hi All! It`s my first post to this list, so be patient :) I`ve got a problem with compiling gtk+ project in eclipse. Here is the simplest project from gtk tutorial: #include gtk/gtk.h int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (argc, argv);

Re: gtk+ and eclipse problems

2008-03-25 Thread James Scott Jr
I have not explored the newest version of eclispe, which reports that it supports the autoconfig framework inside it Managed Make features; so there may be an easier way than this one. I always add a 'Makefile' in my source directory that includes the needed commands to build a gtk+ project.

Re: gtk+ and eclipse problems

2008-03-25 Thread Tor Lillqvist
CFLAGS = `pkg-config --cflags --libs gtk+-2.0 glib-2.0 gthread-2.0` -lm Please don't do spread this `pkg-config --cflags --libs` meme. Although it works on Linux with ELF, in general one should put the compiler flags close to the beginning of the command line, before source files, and library