Yesterday I downloaded GTK package for Windows from http://gladewin32.sourceforge.net/modules/news/. During the installation it asked me if I wanted to integrate it with Devcpp, I said yes. When I opened Devcpp, There were new paths for GTK in "c includes " and "C++ includes". But when I try to compile this code
Code:
#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;
}
it says:
[Linker error] undefined reference to `gtk_main'
this is compile log:
Compiler: Default compiler
Executing g++.exe...
g++.exe "D:\programs\Dev-Cpp\misha\gtk-test.cpp" -o "D:\programs\Dev-Cpp\misha\gtk-test.exe" -g3 -I"d:\programs\GTK\INCLUDE" -I"d:\programs\GTK\INCLUDE\GLIB-2.0" -I"d:\programs\GTK\INCLUDE\PANGO-1.0" -I"d:\programs\GTK\INCLUDE\CAIRO" -I"d:\programs\GTK\INCLUDE\ATK-1.0" -I"d:\programs\GTK\INCLUDE\GTKGLEXT-1.0" -I"d:\programs\GTK\LIB\GTK-2.0\INCLUDE" -I"d:\programs\GTK\LIB\GLIB-2.0\INCLUDE" -I"d:\programs\GTK\LIB\GTKGLEXT-1.0\INCLUDE" -I"d:\programs\GTK\INCLUDE\LIBGLADE-2.0" -I"d:\programs\GTK\INCLUDE\LIBXML2" -I"D:\programs\GTK\include\gtk-2.0" -L"D:\programs\Dev-Cpp\lib" -g3
C:\DOCUME~1\MIHAAM~1\LOCALS~1\Temp/ccSwaaaa.o(.text+0x2b): In function `main':
D:/programs/Dev-Cpp/misha/gtk-test.cpp:13: undefined reference to `gtk_main'
collect2: ld returned 1 exit status
Execution terminated
So, it does compile it, but can not link it then? What can be the problem? Help me please