Hi all,
(Working conditions Dev-C++ 4.01)
this is the first time I try to use Gtk libs.
Compiling this small program, I get a lot of errors which I do not understand. Can you help me ??
Fabio
P.S. Ireally would like to learn gtk programming in win32 so that i can use same libs in LInux and Win 32.
The project has the following libs linked:
-lgtk-1.3 -lgdk-1.3 -lgmodule-1.3 -lglib-1.3
*****************
HERE IS THE CODE
****************+
#include <windows.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <glib/glib.h>
#include <gdk/gdk.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;
}
*******************
Here are the Errors
*******************
In file included from C:\DEV-C__\INCLUDE\gdk\gdkcc.h:4,
from C:\DEV-C__\INCLUDE\gdk\gdk.h:30,
from C:\DEV-C__\INCLUDE\gtk\gtk.h:31,
from c:\documenti\privati\gtk\main.c:3:
C:\DEV-C__\INCLUDE\gdk\gdktypes.h:32: glib.h: No such file or directory
C:\DEV-C__\INCLUDE\gdk\gdktypes.h:49: gdkconfig.h: No such file or directory
In file included from C:\DEV-C__\INCLUDE\gtk\gtkarg.h:31,
from C:\DEV-C__\INCLUDE\gtk\gtkobject.h:31,
from C:\DEV-C__\INCLUDE\gtk\gtkaccelgroup.h:35,
from C:\DEV-C__\INCLUDE\gtk\gtk.h:32,
from c:\documenti\privati\gtk\main.c:3:
C:\DEV-C__\INCLUDE\gtk\gtktypeutils.h:31: glib.h: No such file or directory
In file included from c:\documenti\privati\gtk\main.c:4:
C:\DEV-C__\INCLUDE\glib\glib.h:75: glibconfig.h: No such file or directory
C:\DEV-C__\INCLUDE\glib\glib.h:954: #error unknown ENDIAN type
--
TiscaliNet, libero accesso ad Internet.
http://www.tiscalinet.it
|