SDL

http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php

i am following this tutorial but the libraries and programs have been updated since and i have gotten an error that isnt listed, can anyone figure out what i did wrong? when running it opens SDL_platform.h and in line 121

#include <winapifamily.h>

is the error

1
2
3
4

||=== Build: Debug in SDLPractice (compiler: GNU GCC Compiler) ===|
..\..\..\Desktop\SDL\i686-w64-mingw32\include\SDL2\SDL_platform.h|121|fatal error: winapifamily.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|


i think i must have made a mistake but im not sure how to fix it, thanks for your time in adv.
Last edited on
That's an interesting error. This is SDL trying to determine if it is being compiled on Windows 8. You can work around this easy enough be adding #define _USING_V110_SDK71_ to the top of your project before including any of SDL's headers. But I doubt that's the correct solution since it would modify quite a bit of stuff for the Windows headers following it.
That's not just a "bug", that's a painfully embarrassing oversight. I don't even like the "fix" personally; why would they assume that if I'm using cl version 17.xxx+ that I'm on Windows 8? Why do we have to force it to compile for XP or let it assume that I am compiling on Windows 8? I know Vista was an embarrassment, but why ignore 7? I might be heading over to the SDL boards today...
Thanks for the information guys, this wasnt so hard to fix. Bugs like this panic newbee's xD
Topic archived. No new replies allowed.