SDL

Aug 26, 2014 at 4:08pm
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 Aug 26, 2014 at 4:09pm
Aug 26, 2014 at 5:59pm
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.
Aug 26, 2014 at 8:09pm
Aug 26, 2014 at 10:57pm
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...
Aug 29, 2014 at 6:26am
Thanks for the information guys, this wasnt so hard to fix. Bugs like this panic newbee's xD
Topic archived. No new replies allowed.