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 140 forks source link

compiling error #295

Closed grandpa1946 closed 1 year ago

grandpa1946 commented 1 year ago

when i run the build.bat script, it says fatal error C1083 could not find sdl.h anyone knows why and how to fix this? i use visual studio community 2022. in build.bat is no trace of sdl.h, so i don't know how it can get that error.

grandpa1946 commented 1 year ago

i've tried to recompile a few times, but i keep getting that error

NagyD commented 1 year ago

fatal error C1083 could not find sdl.h

I assume you have set the SDL2 environment variable as explained in the Readme. Does SDL.h exist at %SDL2%\include\SDL.h?

in build.bat is no trace of sdl.h, so i don't know how it can get that error.

SDL.h is included from types.h, which is included from common.h, which is included from most *.c files, which are directly referenced from build.bat.

grandpa1946 commented 1 year ago

i used the default download (code) so no.

NagyD commented 1 year ago

For Visual Studio you need the *-VC.zip files from:

grandpa1946 commented 1 year ago

thx