I was actually using gcc from my mingw64 install, but perhaps that isn't right. I'll try tcc and see how that works out for me. Not sure if this is a mistake or not, but SDL2.dll is not in the lib folder for the 64 bit version. I know I'm not mixing binaries though as I have two separate installs for the 32 and 64 bit versions.