MessageOr Alt-P / Files, click on gtkfun.c an uncheck Compile as C++ :-)
----- Original Message -----=20
From: Reid Thompson=20
To: Jameel Jaasab A'lkedir ; dev-cpp-users=20
Sent: Friday, March 26, 2004 6:53 PM
Subject: RE: [Dev-C++] C'mon folks I really need help!!
you initiated your project as a C++ project. Start over with your =
project intitiated as a C project.
reid=20
-----Original Message-----
From: Jameel Jaasab A'lkedir [mailto:ja...@el...]=20
Sent: Friday, March 26, 2004 12:02 PM
To: dev-cpp-users
Subject: [Dev-C++] C'mon folks I really need help!!
I am trying to compile aprogram from "Sams Teach Yourself GTK+ =
Programming", but the program gives me this erro:=20
------=20
Compiler: Default compiler=20
Building Makefile: "C:\Dev-Cpp\Makefile.win"=20
Executing make clean=20
rm -f ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o Gtk_Test.exe=20
g++.exe -c ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c -o =
../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o =
-I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32" =
-I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include" =
-I"C:/Dev-Cpp/INCLUDE/GDK" -I"C:/Dev-Cpp/include/gdk" =
-I"C:/Dev-Cpp/include/gtk-2.0" -I"C:/Dev-Cpp/include/gtk-2.0/gdk" =
-I"C:/Dev-Cpp/include/gtk-2.0/gdk-pixbuf" =
-I"C:/Dev-Cpp/include/gtk-2.0/gtk"=20
In file included from C:/DEV-CPP/include/gdk/gdk.h:33,=20
from C:/DEV-CPP/include/gtk/gtk.h:31,=20
from ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c:1:=20
C:/DEV-CPP/include/gdk/gdkdnd.h:99:8: warning: extra tokens at end =
of #endif directive=20
../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c: In function `int =
main(int,=20
char**)':=20
../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c:36: invalid =
conversion from `=20
void (*)(GtkButton*, void*)' to `void (*)()'=20
make.exe: *** [../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o] =
Error 1=20
Execution terminated=20
---------------------------------=20
OS Win98=20
Compiler: Ming=20
Attached is a copy of the files.
I would appreciate any, ANY, help.
Thanks folks!!=20
* E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html |