NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 141 forks source link

SDL headers problem on Windows #250

Closed dstarosta closed 3 years ago

dstarosta commented 3 years ago

Is there anything special that needs to be done to make this code work? It only works for me with uncommented incudes. I am using DevCpp as per instructions.

The SDL version is 2.0.14.

//#if !defined(_MSC_VER)
//# include <SDL2/SDL.h>
//# include <SDL2/SDL_image.h>
//#else
// These headers for SDL seem to be the pkgconfig/meson standard as per the
// latest versions. If the old ones should be used, the ifdef must be used
// to compare versions. 
# include <SDL.h>
# include <SDL_image.h>
//#endif
dstarosta commented 3 years ago

Opps. zlib.dll was missing. The game was running from DevCpp with includes uncommented because it was probably picking it up from the SDL folder.