C++ SDL “Native' has exited with code -1073741701 (0xc000007b)”

前端 未结 3 529
梦毁少年i
梦毁少年i 2020-12-21 12:17

My Code

#include \"SDL.h\"
#include 
#undef main

int main ( void ) {
SDL_Init( SDL_INIT_EVERYTHING );
SDL_Quit(  );
return 0;
}
相关标签:
3条回答
  • 2020-12-21 12:49

    I am not sure if this will help you. I have run into the same error with OpenCv. It turned out that I was linking the x64 DLLs instead of the x86 DLLs.

    0 讨论(0)
  • 2020-12-21 12:55

    Have you tried the suggestions in this answer?

    The error you're seeing usually indicates that a runtime dll can't be found. If you have already tried the above, perhaps you could open the built executable in depends.exe which should let you know which DLLs are missing.

    0 讨论(0)
  • 2020-12-21 13:01

    The error also means you might be mixing architectures: 64bit app with 32 bit libraries or (more common:) vice versa

    0 讨论(0)
提交回复
热议问题