Re: gtk+ with latest mingw and gcc 4.8



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


compiling gtk+-3.6.4 with latest mingw and gcc 4.8 leads to lots of
errors like this one:


/usr/local/mingw64-2.8/32/lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/lib/../lib/libuuid.a(lib32_libuuid_a-uuid.o):uuid.c:(.rdata+0x5f0):
multiple definition of `FOLDERID_CommonPrograms'
win32/.libs/libgdk-win32.a(gdkdnd-win32.o):gdkdnd-win32.c:

The root cause is that in gdk/win32/gdkdnd-win32.c #define INITGUID  is
defined.
which leads in
i686-w64-mingw32/include/knownfolders.h
that these known Folders are deifined again. But the are alread defined
in libuuid.

From my point of view the error is in gtk+ you should not define INITGUID.

how can this be fixed properly?

I just deleted the define for me.

This define is still defined in HEAD revision, too.


For reference, that is what Fedora is already doing in its mingw-gtk
packaging:

http://pkgs.fedoraproject.org/cgit/mingw-gtk2.git/tree/gtk-dont-define-initguid.patch

- -- 
Aleksander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGHcuYACgkQgxIgkKLogl7EqgCgwyaxi0DR8yqg/z3m9T4iOQxK
jT4An2QjRfNT8PRIaQ3LX0obbpkVgPEo
=09Q0
-----END PGP SIGNATURE-----


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