Indeed, moving the gtk+ files to folder c:\gkt worked. Below are the complete instructions
1) Download gtk v3.6.4 all-in-one bundle for win64 from
http://www.gtk.org/download/win64.php at
http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.zip2) Place zip file in c:\
3) Unzip file contents. With [Right Mouse Button > Extract All > to folder: c:\ > Extract]. You now have all gtk files extracted in c:\gtk
4) In order to set the gtk folder and add the c:\gtk\bin folder to the path, check the path and execute the gtk3 demo program, run the following commands from the windows command prompt as administrator, goto [Start > Run > cmd > CTL-SFT-ENT > YES]
setx GTKDIR c:\gtk /m [ENTER]
set PATH=%PATH%;%GTKDIR%\bin [ENTER]
set
gtk3-demo [ENTER] and close the demo program [X]
exit
5) Start the Pelles C IDE [Start > All Programs > Pelles C for Windows > Pelles C IDE]
6) Open the Pelles C IDE configuration tool using the menu [Tools > Options]. Click the "Folders" tab and click the "Folders" tab and select "Type: executables" and add c:\gtk\bin > OK > OK
7) Start a new project with menu [File > New > Project > Win64 Console Program exe > Name:project1 > OK]
8 ) Create a source code file with menu [File > New > Source Code > Name:source1 > File > Save as File Name: source1 > Save > Yes]
9) Place these contents in the file:
#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;
}
10) Open the project configuration tool using the menu option [Project > Project Options]
11) Click the "Complier" tab and check in "options" the "Enable Microsoft extensions" and select for "warnings" the "Level1"
12) Click the "Linker" tab and add the following Library files at the end of the ones already in it
glib-2.0.lib gtk-win32-3.0.lib gdk-win32-3.0.lib gobject-2.0.lib gdk_pixbuf-2.0.lib gthread-2.0.lib gmodule-2.0.lib pango-1.0.lib atk-1.0.lib pangowin32-1.0.lib
13) Click the "Folders" tab and add the following "Libraries": c:\gtk\lib
14) Click the "Folders" tab and add the following "Includes":
c:\gtk\include
c:\gtk\include\gtk-3.0
c:\gtk\include\glib-2.0
c:\gtk\include\gio-win32-2.0
c:\gtk\include\cairo
c:\gtk\include\pango-1.0
c:\gtk\include\gdk-pixbuf-2.0
c:\gtk\include\atk-1.0
c:\gtk\lib\glib-2.0\include
15) Save with menu [File > Save all]
16) Build and run with menu [Project > Build] and [Project > Execute]
17) A small window should come-up called "project1.exe". Close it with [X] and close the "console program output" command window [X]
18) To run the program in MS Windows, check the project folder in c:\users\username\my documents\pelles c projects\project1 and double click file project1.exe. A message comes up that libglib-2.0-0.dll is required. Take this file from folder c:\gtk\bin and copy it in the same folder as the project1.exe file and double click it again. You now get the message "the application was unable to start correctly". Therefore, copy file project1.exe to the c:\gtk\bin folder and double click it again. Now it seems to run. Some of the required dll dynamic link library files seem to be present in this folder
If you want a better Windows style theme, edit file C:\gtk\etc\gtk-3.0\settings.ini with
[Settings]
gtk-theme-name = "MS-Windows"