Help compiling a GTK+ program



I am trying to compile aprogram from "Sams Teach Yourself GTK+ Programming", but the program gives me this 
erro


------

The error message I get is:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing  make clean
rm -f ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o  Gtk_Test.exe

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"  

In file included from C:/DEV-CPP/include/gdk/gdk.h:33,
                 from C:/DEV-CPP/include/gtk/gtk.h:31,

                 from ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c:1:
C:/DEV-CPP/include/gdk/gdkdnd.h:99:8: warning: extra tokens at end of #endif directive
../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c: In function `int main(int, 

   char**)':
../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c:36: invalid conversion from `
   void (*)(GtkButton*, void*)' to `void (*)()'

make.exe: *** [../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o] Error 1

Execution terminated
---------------------------------

OS Win98 
Compiler: Ming

* E-Mail Policy
     http://www.vif.com/users/escalante/Email_Policy.html


Entérate de las noticias más actualizadas de El Salvador y el mundo en www.elsalvador.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]