mingw32-gcc.exe: C:\MinGW\include\gtk-2.0\gtk: linker input file unused because linking not done
Oh dear... it seems you are not really used to a build process, right?! ;-)
The include directory (the one that contains the header files) has to be put into the compiler directories. As you include "gtk/gtk.h" you have to add the lower level directory there -> "C:\MinGW\include\gtk-2.0". So much for the compiler part. This ensures that the compiler will find the headers it needs.
Now the linker: Where there is an "include" directory there should also be a "lib" directory (as you need a GTK *sdk* to compile GTK projects). This directory you have to put to linker directories (also in the project options). Then you have to add the libraries you need to link against (I can't tell - but I assume something like "libgtk.a") into the list of libraries to link your project against. 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.
Keep in mind:
- "Other options" are directly passed to the command line of the compiler/linker and will cause errors if not used correctly. In your case the linker tried to link your project agains a library called "C:\MinGW\include\gtk-2.0\gtk" which of course will fail because this is a directory.
- Don't mix compiler/linker parts. The compiler need header files, the linker libraries. And both need to know where they are.
- Keep in mind that you might need specific defines for the compilation/linking, too. This depends on your project and the GTK libraries
- Ensure you link against all libraries that are required (otherwise you'll receive "undefined symbols" errors). This is at least the "top level" GTK library, but also others might be required - consult the GTK-SDK for information about this (I don't know).
- On windows: Ensure you also link against the system libraries you will require, e.g. user32, gdi32 and others. Again: The information you should be able to get from the GTK-SDK documentation.
With regards, Morten.