Re: LCCWin32 and GTK2.0



On Wed, 13 Nov 2002, Emanuele wrote:

Hi all!
I have tried to compile the HELLO WORLD source of the GTK2.0 from the tutorial; i have tried under Linux 
and under Windows. Under Linux i have tried the line find in the tutorial, but it does not work: simply pkg-
config tells me that GTK+-2.0 does not exists, but it's a fault because in my RedHat8.0 i have ALSO 
installed that package. After many failings i have tried to pass directly the library to the gcc and it 
work, with the:

-lgtk-x11-2.0

i do not know why, but it worked, and i have seen the window on my screen.

Now, in Microsoft Windows i have many problems: first of all, as in Linux, i have copied the header 
directly into the header directory, so i can avoid to include another header path, and the compilation 
works fine.
The linking is not possible: i have setted in LCCWin32 linker options all the library in the right order 
(glib-2.0.lib gobject-2.0.lib gmodule-2.0.lib pango-1.0.lib pangowin32-1.0.lib atk-1.0.lib 
gdk-pixbuf-2.0.lib gdk-win32-
2.0.lib gtk-win32-2.0.lib) but i receive ever the same 25 error about UNREFERENCED FUNCTION g_print, for 
example and all the libs are in the /lib directory of LCCWin32.

A friend of mine has regular MSVC and he tells me about only 4 errors when he includes the gtk-win32 
library in the linking option, so should suppose that LCCWin32 simply ignore my list of libs?

Thanks to all of you for any help and then i have read MANY MANY MANY messages about GTK compilation in 
various system: why not make a Tutorial on compiling this GTK under Windows and Linux, indicating 
possible problems and possible programs to use? Thanks to everybody!

i don't really know how lcc works, but i've successfully installed 
msys, mingw and gtk2.0 in win32 and i've written a small howto (in french, 
but i can translate it) about that.

regards

Vincent TORRI


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


-- 
TORRI Vincent
Mathematiques Appliquees Bordeaux                                                
Institut de Mathematiques                                                       
Universite Bordeaux 1                                                           
351 cours de la liberation                                                      
33 405 Talence cedex - France                                                   
                                                                                
Tel : 33 (0)5 57 96 21 42                                                       
Fax : 33 (0)5 56 84 26 26                                                       
--




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