|
From: Scott B. <doo...@ya...> - 2005-02-28 06:40:30
|
I have recently installed the GTK devpacks on devcpp. I can compile and run the example GTK programs from GTK + Book Examples and gtk2_examples,
but when I try to create a new GTK project I get the following error:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\MyFiles\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\MyFiles\Makefile.win" all
g++.exe -c gtktest.cpp -o gtktest.o -I"C:/Dev-Cpp/include/gtk-2.0/gtk" -I"C:/Dev-Cpp/include/gtk-2.0/gdk" -I"lib/gcc-lib/mingw32/3.3.1/include" -I"include/c++/3.3.1/mingw32" -I"include/c++/3.3.1" -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include"
gtktest.cpp:1:21: gtk/gtk.h: No such file or directory
gtktest.cpp:4: error: variable or field `destroy' declared void
gtktest.cpp:4: error: `GtkWidget' was not declared in this scope
gtktest.cpp:4: error: `widget' was not declared in this scope
gtktest.cpp:5: error: `gpointer' was not declared in this scope
gtktest.cpp:5: error: initializer expression list treated as compound expression
gtktest.cpp: In function `int main(int, char**)':
gtktest.cpp:10: error: `GtkWidget' undeclared (first use this function)
gtktest.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.)
gtktest.cpp:10: error: `window' undeclared (first use this function)
gtktest.cpp:12: error: `gtk_init' undeclared (first use this function)
gtktest.cpp:14: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use this function)
gtktest.cpp:14: error: `gtk_window_new' undeclared (first use this function)
gtktest.cpp:16: error: `G_OBJECT' undeclared (first use this function)
gtktest.cpp:17: error: `G_CALLBACK' undeclared (first use this function)
gtktest.cpp:17: error: `NULL' undeclared (first use this function)
gtktest.cpp:17: error: `g_signal_connect' undeclared (first use this function)
gtktest.cpp:21: error: `gtk_widget_show' undeclared (first use this function)
gtktest.cpp:23: error: `gtk_main' undeclared (first use this function)
gtktest.cpp: At global scope:
gtktest.cpp:28: error: variable or field `destroy' declared void
gtktest.cpp:28: error: redefinition of `int destroy'
gtktest.cpp:4: error: `int destroy' previously defined here
gtktest.cpp:28: error: `GtkWidget' was not declared in this scope
gtktest.cpp:28: error: `widget' was not declared in this scope
gtktest.cpp:29: error: `gpointer' was not declared in this scope
gtktest.cpp:30: error: expected `,' or `;' before '{' token
make.exe: *** [gtktest.o] Error 1
Execution terminated
Does anybody know how to fix this, please ?
Scott
---------------------------------
Find local movie times and trailers on Yahoo! Movies.
|