Quote Originally Posted by christop View Post
I'm in Linux Mint (derivative of Ubuntu) and I installed the gcc-mingw-w64-i686 package. Then I was able to compile with "i686-w64-mingw32-gcc -D _WIN32 -mabi=ms -march=i386", plus the source file names. So you might need to check which compiler you're using to ensure it supports 32-bit x86.
I stand, er, sit corrected, the binary apparantly DID matter, at least as far as the silencing the mingw header warnings/errors go, while hunting the net for info I came across this:

MinGW-w64 - for 32 and 64 bit Windows / Wiki2 / UsingLinuxBinaries

which did use the prefix so I decided to just try it since I had no other leads and it worked well enough that I didn't even need to declare the mingw directories so now I'm just dealing with non-errors that are flagging up most likely because of the -pedantic option, the 1st was that I assumed like size_t vs SIZE_T microsoft had opted to use PTRDIFF_T instead of ptrdiff_t, they didn't so I got a more simple typedef now, as for the rest, was casting down directly from uintmax_t to void* and the compiler didn't like that, so now I'm putting uintptr_t between the casts and the original variables