I downloaded a bundle of
GTK, extracted it, then tried it..
Test code used:
#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;
}
Compiler returns this:
1 C:\Dev-Cpp\Test\Main.cpp gtk/gtk.h: No such file or directory.
C:\Dev-Cpp\Test\Main.cpp In function `int main(int, char**)':
5 C:\Dev-Cpp\Test\Main.cpp `GtkWidget' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
5 C:\Dev-Cpp\Test\Main.cpp `window' undeclared (first use this function)
7 C:\Dev-Cpp\Test\Main.cpp `gtk_init' undeclared (first use this function)
9 C:\Dev-Cpp\Test\Main.cpp `GTK_WINDOW_TOPLEVEL' undeclared (first use this function)
9 C:\Dev-Cpp\Test\Main.cpp `gtk_window_new' undeclared (first use this function)
10 C:\Dev-Cpp\Test\Main.cpp `GTK_WINDOW' undeclared (first use this function)
10 C:\Dev-Cpp\Test\Main.cpp `gtk_window_set_title' undeclared (first use this function)
11 C:\Dev-Cpp\Test\Main.cpp `gtk_window_set_default_size' undeclared (first use this function)
12 C:\Dev-Cpp\Test\Main.cpp `GTK_WIN_POS_CENTER' undeclared (first use this function)
12 C:\Dev-Cpp\Test\Main.cpp `gtk_window_set_position' undeclared (first use this function)
13 C:\Dev-Cpp\Test\Main.cpp `gtk_widget_show' undeclared (first use this function)
15 C:\Dev-Cpp\Test\Main.cpp `G_OBJECT' undeclared (first use this function)
16 C:\Dev-Cpp\Test\Main.cpp `gtk_main_quit' undeclared (first use this function)
16 C:\Dev-Cpp\Test\Main.cpp `G_CALLBACK' undeclared (first use this function)
16 C:\Dev-Cpp\Test\Main.cpp `NULL' undeclared (first use this function)
16 C:\Dev-Cpp\Test\Main.cpp `g_signal_connect_swapped' undeclared (first use this function)
18 C:\Dev-Cpp\Test\Main.cpp `gtk_main' undeclared (first use this function)
C:\Dev-Cpp\Test\Makefile.win [Build Error] [Main.o] Error 1
I have tried altering project properties, but it gives the same errors
How do I make it work?