Original Post
In windows, the SDL library is compiled with the stdio redirection by default, which means that programs linked with it will have their standard output redirected to 'stdout.txt' and standard error to 'stderr.txt'. To prevent this from happening you would normally need to compile the source by yourself. Here is a way to avoid that. First, you have to make your project a win32 gui project (not console), in DevCpp that's in Project->'Project Options'. Then, you have to include 'windows.h' and 'stdio.h' in the file where you initialize SDL, and then your code should look like this: void initSDL() { SDL_Init(/*whatever*/); AllocConsole(); freopen("CONOUT$", "wb", stdout); freopen("CONOUT$", "wb", stderr); freopen("CONIN$", "rb", stdin); /*...*/ } Also, it's nice to call FreeConsole() when you're done. Hope this helped!