Ok, thanks again for the help here. Documentation seems to be quite thin on the ground here.
I didn't get your last part MortenMacFly, the bit that goes.
Add "gtk" there only, this will resolve on the linker command to "-lgtk" which the linker will resolve to "libgtk.a" finally... trust me, this works.
Where does that need to go?
So far I've added under Project--> Build Options --> [Directories]
[Compiler] --> C:\MinGW\include\gtk-2.0
and for the Linker
[Linker] --> C:\MinGW\lib
(as the 'gtk-2.0' folder in MinGW/lib/ had no .a or .lib files in.)
And I've added the following libraries under [Linker]:
gtk-win32-2.0.lib and libgtk-win32-2.0.dll.a
With the above options I seem to get a flood of compiler errors, it seems to be going through all the headers in /include/gtk/ and reporting errors in each...
In the basic tutorial (link in the first post) it says I can compile the following code with: 'gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`'
#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;
}
But adding that command line sans the 'gcc' to [Other Options] gets the following:
cc1.exe: error: unrecognized command line option "-flibs"
mingw32-gcc.exe: base.c: No such file or directory
mingw32-gcc.exe: `pkg-config: No such file or directory
mingw32-gcc.exe: gtk+-2.0`: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Am I still missing something fundamental here?
Really appreciate the help. Thanks.