I'd like to print some debugging stuff to the console while running my SDL 2 program, but it seems impossible. printf("Hi!\n")
and SDL_Log("Hi!\n")
both won't do me any good.
I even tried printing before initializing SDL (and after quitting it, too), but to no avail. It seems like merely importing the SDL library makes it impossible to print anything to the console.
Here are the parameters I'm compiling with, since it's possible that might have something to do with it:
g++ hello.cc -IC:\mingw_dev_lib\include\SDL2 -LC:\mingw_dev_lib\lib -w -Wl,-subsystem,windows -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -std=c++11
Any ideas?