From: <rr...@cs...> - 2010-10-11 02:16:09
|
Mark Hayden writes: >I've been trying to compile against the actual Windows SDK (headers >& libraries) with mingw gcc and ran into lots of incompatibilities. >Has anyone done this and had success? Any pointers for how to make >that work? For the most part the Windows SDK headers aren't incompatible with GCC. If there one particular header file you need that doesn't exist in win32api heapers or is missing something you need, then you can try just using that one header with from the Windows SDK and use win32api for the rest. It's also possible to only use Windows SDK headers, and avoid using the win32api headers entirely, but you need to fix a number of problems in key header files. I used to just modify the headers, but the Windows SDK has actually gotten a bit more compatible and now I use wrappers to fix the problems. There are some header files and libraries that are pretty much fundementally incompatible with GCC, like GDI+. If you want to use GDI+, you'll need to use a Microsoft compiler. Ross Ridge |