[SDL2] - Where is the error text displayed?

I am new to SDL2. In the examples that I found on the internet, the code to check whether there is error when initializing something look like this:
1
2
if (!init())
cout << "Fail to initialize...";


If there is an error, where is this line displayed? When I compile the program, the console window doesn't show up.
Last edited on
Just because the console window doesn't show up doesn't mean your program output doesn't exist. If you want to see the output, you can either start the program from an existing console, or pipe the program's output to a file.
Does SDL 2 on Windows redirect all output to files named stdout.txt and stderr.txt like SDL 1.2 did? I don't remember.
Last edited on
Topic archived. No new replies allowed.