Sign in to follow this  
coden4fun

SDL_Error what is up with this.

Recommended Posts

coden4fun    100
Hi, I've decided to switch libraries for my game just because of the support of the SDL library, and well I've just started working with Visual C++ 05 and "Orcas" but in both programs I get this error
'SDL_00.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
'SDL_00.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll'
The thread 'Win32 Thread' (0x1d8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x9ac) has exited with code 0 (0x0).
The program '[2396] SDL_00.exe: Native' has exited with code 0 (0x0).

what does this mean? I'll try to build the project differently than what the lazy foo productions tutorial says to do, and see what i come up with. I was just initializing SDL and see if it would run, and I got the above error. How come?
#include <SDL.h>

int main(int argc, char* args[])
{
	SDL_Init( SDL_INIT_EVERYTHING );

	SDL_Quit();

	return 0;
}

It can't be my code can it? I've linked everything correctly, or I would of gotten some linker errors. What is up with this?

Share this post


Link to post
Share on other sites
basement    229
There is actually no error in your program, the output just indicates that your program closed immediately, which, looking at your source code, is nothing unusual. You'll need to have at least some kind of main loop between your call to SDL_Init and SDL_Quit. What else did you think the program would do?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this