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

情到浓时终转凉″ 提交于 2019-12-10 22:29:22

问题


My Code

#include "SDL.h"
#include <iostream>
#undef main

int main ( void ) {
SDL_Init( SDL_INIT_EVERYTHING );
SDL_Quit(  );
return 0;
}

I followed LazyFoo's tut, but I still needed to modify my settings even to build the solution. Now, every time I debug it I get this:

The program [11228] xxx.exe: Native' has exited with code -1073741701 (0xc000007b).

Can you help me please ?

edit: I'm running Windows 7 64bit, and I've the x86 lib package included, linker inputs: SDL.lib;SDLmain.lib;SDL_image.lib;OpenGL32.lib;glu32.lib


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/11648621/c-sdl-native-has-exited-with-code-1073741701-0xc000007b

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!