I am new to SDL and to cross-platform in general.
I want to recompile SDL just to make sure I can eventually change it if needed, and then a few demos on my Windows 8.1 development machine.
I would also like to use open source compilers if possible so I installed codeblocks IDE + MinGW and tried to compile the SDL 2.0.3 source code.
It first failed saying it needed ddraw.h so I installed 'Direct X SDK' (I only plan on using OpenGL but I am told that DirectX is required for joystick input) but then I found on a forum that it was replaced by 'Windows 8.x SDK' , so I installed 'Windows 8.1 SDK' and added the include directories but now I get '...\Include\um\winnt.h|938|error: #error Must define a target architecture.' so I am starting to wonder if using MinGW is a valid way to compile SDL on Windows.
I looked at some of the wiki on codeblocks about recompiling SDL but they are 10+ years old:
http://wiki.codeblocks.org/index.php?title=Using_SDL_with_Code::Blocks
I also looked at some info on the SDL site but they mention an August 2007 DirectX SDK so it does not look too recent either: