“winapifamily.h: No such file or directory” when compiling SDL in Code::Blocks

后端 未结 3 2124
抹茶落季
抹茶落季 2020-12-04 15:38

I am following along with the SDL2.0 tutorials by LazyFoo, using Code::Blocks 13.12. I have had no trouble getting SDL2 linked and running in VS2010 but have changed IDE and

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 16:23

    UPDATE: SDL 2.0.4 is now out, includes a fix for this bug, and is available for download at http://libsdl.org/download-2.0.php


    This is a bug in SDL 2.0.3. A fix has been committed for SDL's next release. In the meantime, here's a link to the fixed copy of SDL_platform.h:

    https://hg.libsdl.org/SDL/raw-file/e217ed463f25/include/SDL_platform.h

    If you drop the file into SDL 2.0.3's include\SDL2\ directory, overwriting the original, your app(s) should compile ok.

提交回复
热议问题