Hi, You may wish to add the gdiplus headers from win32api / mingw.org (win32api version 3.17)
I have success using them with v2 crt both 32 and 64 bit to build and use wxWidgets. The only changes I needed were to add a single definition to a header and, of course, build the c object into libgdiplus.a If someone imports the win32api gdiplus I'll post a patch to have it build. win32api files needed (mingw-w64 will need its own .def file for lib64) lib/gdiplus.c include/gdiplus.h include/gdiplus/* appart from creating the .def files for lib32/lib64 my only changes were adding a single definition to include/gdiplus/gdiplus.h. Anyhow, if someone feels it worth importing the gdiplus files, I'll post a patch to change header, add defs and add libgdiplus.a to the build scripts. If not, relevant info for anyone wanting gdiplus pasted below. Rgds Mark Create 32 / 64 bit .def files in the normal way with gendef from gdiplus.dll Apply patch below then: gcc -O2 -g -c gdiplus.c dlltool --as=as -k --output-lib libgdiplus.a --input-def gdiplus32.def ar r libgdiplus.a gdiplus.o ranlib libgdiplus.a ===================================================================== --- gdiplus/gdiplus.h 2011-03-26 02:46:05 +0000 +++ gdiplus/gdiplus.h 2011-11-12 03:58:08 +0000 @@ -34,6 +34,11 @@ #include <wingdi.h> #include <basetyps.h> + +#ifndef _COM_interface +#define _COM_interface struct +#endif + typedef _COM_interface IStream IStream; typedef _COM_interface IDirectDrawSurface7 IDirectDrawSurface7; ===================================================================== ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
