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

1

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

c++
sdl
asked on Stack Overflow Jul 25, 2012 by Seven of Nine • edited Jul 25, 2012 by Seven of Nine

3 Answers

3

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.

answered on Stack Overflow Jul 25, 2012 by randomdude • edited May 23, 2017 by Community
2

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

answered on Stack Overflow Dec 25, 2013 by ravyr
0

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.

answered on Stack Overflow Oct 17, 2016 by Nehad Hirmiz

User contributions licensed under CC BY-SA 3.0