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

when building and executing, i get error 0xc000007b. using release, not debug #311

Closed grandpa1946 closed 10 months ago

NagyD commented 10 months ago

Do you not get this error if you compile in debug mode?

0xC000007B means "invalid image format". That is, the EXE (or one of the DLLs) is 32-bit but it should be 64-bit, or the other way around.

I found this for the error, I don't know if it helps: https://answers.microsoft.com/en-us/windows/forum/all/fix-how-to-fix-the-0xc000007b-error/7ceb6950-306b-441e-994d-a353a14b3bca

dstarosta commented 10 months ago

The sdl.dll and/or sdl_image.dll is 32-bit instead of 64-bit, or the other way around.

The error does not occur if you debug from dev-cpp because it uses the source code of the libraries.

Here are the links for the libraries. Use one of the top 2 zip links to get the DLLs.

https://github.com/libsdl-org/SDL/releases https://github.com/libsdl-org/SDL_image/releases

grandpa1946 commented 10 months ago

Do you not get this error if you compile in debug mode?

0xC000007B means "invalid image format". That is, the EXE (or one of the DLLs) is 32-bit but it should be 64-bit, or the other way around.

I found this for the error, I don't know if it helps: answers.microsoft.com/en-us/windows/forum/all/fix-how-to-fix-the-0xc000007b-error/7ceb6950-306b-441e-994d-a353a14b3bca

i was just thinking that! sorry for the "false" error didn't think about matching the architecture of the exe with the architecture of the dll... thanks! i used the right mingw with dev c++ but not when adding the dlls to the sdlpop directory