cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
[SDL2] - Where is the error text display
[SDL2] - Where is the error text displayed?
Aug 9, 2015 at 3:37pm UTC
KMagic
(47)
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
Aug 9, 2015 at 3:37pm UTC
Aug 9, 2015 at 3:51pm UTC
LB
(13399)
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.
Aug 9, 2015 at 4:51pm UTC
Peter87
(11238)
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
Aug 9, 2015 at 4:52pm UTC
Topic archived. No new replies allowed.