Re: g_type_query in gtk-win32
- From: Tor Lillqvist <tml iki fi>
- To: John Emmas <johne53 tiscali co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_type_query in gtk-win32
- Date: Thu, 5 Feb 2009 17:21:57 +0200
I am, because I get a runtime error if I don;t use
that flag - even though I'm not linking to any Microsoft libraries. Is that
normal?
The run-time error is intentional, to make sure that you did use the
switch. Whether you link to Microsoft libraries or not is not relevant
here. What's relevant is that as the switch has been used when
compiling GTK+ itself, it must also be used when compiling GTK+-using
code so that it uses the same alignment rules for struct bitfields.
The reason why the switch is used when compiling GTK+ itself is so
that the produced binaries are usable from code compiled with
Microsoft's compiler. (Which always uses the alignment rules that gcc
needs the switch for. Why that switch isn't the default for mingw I
don't know, but of course this can't be changed any more now.)
libgnomecanvas-2 isn't listed and
I think I might have an old (incompatible) one still present. Should
libgnomecanvas-2 have been installed by one of the other packages or do I
need to obtain it from somewhere else?
The latest one is 2.20.1-1 available at
http://ftp.gnome.org/pub/GNOME/binaries/win32/libgnomecanvas/2.20/ .
It's always a good idea to check the GNOME ftp site for Win32
binaries. The download page might not always be completely up-to-date.
When I run your test program with a PATH that makes it use the latest
Win32 DLLs for the GNOME stack, their full paths are as in the
following gdb printout. The pathnames contain the package versions.
(This is just a convention I use to keep unpacked copies of the zip
files, not some convention I would recommend others to follow)
(gdb) i dll
From To Syms Read Shared Object Library
...
0x63a41000 0x63a7b550 Yes
c:\devel\dist\win32\glib-2.18.4-1\bin\libgobject-2.0-0.dll
0x685c1000 0x6869ad84 Yes
c:\devel\dist\win32\glib-2.18.4-1\bin\libglib-2.0-0.dll
...
0x61781000 0x61b3779c Yes
c:\devel\dist\win32\gtk+-2.14.7-1\bin\libgtk-win32-2.0-0.dll
0x65341000 0x6535ba7c Yes
c:\devel\dist\win32\gtk+-2.14.7-1\bin\libgdk_pixbuf-2.0-0.dll
0x6d581000 0x6d5cd974 Yes
c:\devel\dist\win32\glib-2.18.4-1\bin\libgio-2.0-0.dll
0x6dd01000 0x6dd0921c Yes
c:\devel\dist\win32\glib-2.18.4-1\bin\libgmodule-2.0-0.dll
0x6c341000 0x6c3e2924 Yes
c:\devel\dist\win32\gtk+-2.14.7-1\bin\libgdk-win32-2.0-0.dll
0x68dc1000 0x68e6347c Yes
c:\devel\dist\win32\cairo-1.8.6-1\bin\libcairo-2.dll
0x69c81000 0x69cad9d4 Yes
c:\devel\dist\win32\libpng-1.2.34-1\bin\libpng12-0.dll
0x10001000 0x1001134c Yes c:\devel\dist\win32\zlib-1.2.3\bin\zlib1.dll
...
0x65581000 0x655bf850 Yes
c:\devel\dist\win32\pango-1.22.4-1\bin\libpango-1.0-0.dll
0x6d4c1000 0x6d4cd410 Yes
c:\devel\dist\win32\pango-1.22.4-1\bin\libpangocairo-1.0-0.dll
0x6b281000 0x6b2927c0 Yes
c:\devel\dist\win32\pango-1.22.4-1\bin\libpangowin32-1.0-0.dll
...
0x62941000 0x6295cea8 Yes
c:\devel\dist\win32\atk-1.24.0-1\bin\libatk-1.0-0.dll
...
0x63f41000 0x63f6e750 Yes
c:\devel\dist\win32\libgnomecanvas-2.20.1\bin\libgnomecanvas-2-0.dll
0x6a181000 0x6a18b254 Yes
c:\devel\dist\win32\gtk+-2.14.7-1\bin\libgailutil-18.dll
0x655c1000 0x655d7358 Yes
c:\devel\dist\win32\libart-lgpl-2.3.20\bin\libart_lgpl_2-2.dll
0x6d701000 0x6d734b80 Yes
c:\devel\dist\win32\pango-1.22.4-1\bin\libpangoft2-1.0-0.dll
0x64f81000 0x64faffa4 Yes
c:\devel\dist\win32\fontconfig-2.6.0-2\bin\libfontconfig-1.dll
0x68f41000 0x68f62064 Yes
c:\devel\dist\win32\expat-2.0.1-1\bin\libexpat-1.dll
0x67cc1000 0x67d33590 Yes
c:\devel\dist\win32\freetype-2.3.8-1\bin\freetype6.dll
0x69001000 0x69016d8c Yes
c:\devel\dist\win32\gettext-runtime-0.17-1\bin\intl.dll
...
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]