
I could certainly restart the setup from scratch, which - I admit - is pretty appealing right now. Thank's for taking time to respond in such detail. That's why I instructed you in my other reply to point you Code::Blocks sdl2 global variable to C:\SDL2-2.0.3\ i686-w64-mingw32 - so that you'll use the 32-bit SDL2 build, which matches the 32-bit TDM-GCC that is bundled with Code::Blocks. 64-bit issue, well, it's not an issue: under the folder where you unpacked SDL2, there are BOTH the i686-w64-mingw32 (32-bit) and x86_64-w64-mingw32 (64-bit) folders, each with their own bin and lib subfolders. I have used both SDL 1.2.15 and SDL 2.0.3 with both MinGW32 and TDM-GCC just fine.Īs for the 32-bit vs. Actually, I believe the official SDL distribution is not even compiled on Windows, but rather cross-compiled on Linux.
#Codeblocks compiler mingw64 install
There's no need to install a particular flavor of MinGW, SDL is a C library and therefore it's ABI-compatible with other MinGW compilers. I'm at a loss and I'm very hopeful that one of you has possibly encountered this (or something like it) before and can spot what I've missed or done incorrectly here. Make install-package arch=$arch prefix=/usr/local/cross-tools/$arch I did try "cross" which gave me an even fancier error.įor arch in i686-w64-mingw32 x86_64-w64-mingw32 do \ The only page I found on "-d was unexpected" was this StackOverflow post that looked like I'd need to debug SDL2's makefile, which I wished to avoid. The "native" specificer there seems to be trying to crank out 32-bit, when I would prefer 64-bit perhaps that's just the first step, but I'm not sure. Make: Leaving directory `f:/SDL/SDL2-2.0.3'

Make: Entering directory `f:/SDL/SDL2-2.0.3' Make install-package arch=i686-w64-mingw32 prefix=/usr (This is where I reveal to you what a giant noob I am with make.)
#Codeblocks compiler mingw64 windows
It occurred to me that possibly I need to build the libs myself, so I installed Make for Windows and tried that and ran into some problems. I translated those /usr/local/cross-tools/ paths to Windows paths, pointing at the pre-compiled ones that I unpacked with the rest of SDL 2.0.3, thus:

L/usr/local/cross-tools/x86_64-w64-mingw32/lib -lmingw32 -lSDL2main -lSDL2 -mwindows (I'm mostly certain this is okay, but including it here anyway.) I used sdl-config to get the cflags and libs appends but here's the first catch I couldn't run these in Windows (it gave me a "These are 16-bit" errors) so I ran them in my Cygwin window. 64-bit issue? (Again, it looks to me like it's not, and I did try throwing -m64 into the options it had no effect.) Or maybe I'm just way more wrong than I think I am. I.E., inspite of what the warning is telling me it appears to me that I am in fact trying to use mingw libs with a mingw compiler. I would like to play around with SDL2, so I grabbed SDL2-devel-2.0. which, on the site, is linked beside the MinGW64 that I downloaded. I've pointed Code::Blocks at mingw it's on the path and the only "g++" on my system, so that's got to be what it's running. I installed mingw-64 (which is the only mingw on my system) but it's worth mentioning that VS 2010 is also on here. Then in this spectacularly frustrating post, a user puts up an error very, very similar to mine (same warning, different version, and some actual errors) but then shortly after posts that they fixed it.so the solution is never shared.

This post (here on Gamedev) and this post (from the SDL forums) seem to imply that I'm (accidentally) trying to link either I do have quite a few VS redists installed (including one with the exact version number in that warning), but I don't think that's really connected here. YES those two function calls are commented out the warning is only thanks to the #include of SDL.h. I'm hoping that, if I list out everything I've learned and seen so far, maybe one of you all will see what I'm missing. My Googlefu has failed me and I'm totally out of ideas. drectve `/manifestdependency:"type='win32' name='' version='2.8' processorArchitecture='amd64' publicKeyToken='1fc8b3b9a1e18e3b'" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized| I am trying to build a shockingly simple SDL2 app with Code::Blocks and mingw64 and here's what I'm getting:
