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

Re: g_type_query in gtk-win32



> 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


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