RE: GTK+ and MinGw..............
- From: martyn 2 russell bt com
- To: gtk-app-devel-list gnome org
- Subject: RE: GTK+ and MinGw..............
- Date: Tue, 16 Sep 2003 17:02:42 +0100
Compilation
-------------
c:> gcc -c hello.c -Ic:/gtk/include/gtk-2.0
-Ic:/gtk/lib/gtk-2.0/include -Ic:/gtk/include/atk-1.0
-Ic:/gtk/include/pango-1.0 -Ic:/gtk/include/glib-2.0
-Ic:/gtk/lib/glib-2.0/include
I would use:
gcc -c hello.c `pkg-config --cflags gtk+-2.0`
Linking
-------
c:> gcc -o hello hello.o -Lc:/gtk/lib -lgtk-win32-2.0
-lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0
-lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
-liconv
I would use:
gcc -o hello hello.o `pkg-config --libs gtk+-2.0`
After linking, I got hello.exe. When executed hello.exe, I
got an error message stating that "The procedure entry point
g_get_application_name could not be located in the dynamic link
library libglib-2.0-0.dll". I set "c:\gtk\lib" to PATH variable
which contains all library files.
This sounds to me like a DLL mismatch. I think Ive had this before but only
when I have compiled the application against version 'a' and downloaded
version 'b' and it complains when I try to run it (against the new
libraries) without recompiling.
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]