Re: [Dev-C++] Problems with Dev-C++ and Gtk Libs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Fabio S. <fab...@ti...> - 2001-02-24 11:06:54
|
From http://members.fortunecity.com/honglilai/ Fabio ----- Original Message ----- From: "Schedler, Kurt" <Kur...@hi...> To: <dev...@li...> Sent: Friday, February 23, 2001 7:59 PM Subject: RE: [Dev-C++] Problems with Dev-C++ and Gtk Libs > Where did you get the libs in the first place? > > -----Original Message----- > From: fabio.sona [mailto:fab...@ti...] > Sent: Friday, February 23, 2001 3:49 AM > To: dev...@li... > Subject: [Dev-C++] Problems with Dev-C++ and Gtk Libs > > > 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 > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > "The sender believes that this E-mail and any attachments were free of any > virus, worm, Trojan horse, and/or malicious code when sent. This message > and its attachments could have been infected during transmission. By > reading the message and opening any attachments, the recipient accepts full > responsibility for taking protective and remedial action about viruses and > other defects. The sender's employer is not liable for any loss or damage > arising in any way from this message or its attachments." > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |