Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How can I get console output instead of stdout.txt when using SDL?
How can I get console output instead of stdout.txt when using SDL? [message #1691353] Mon, 06 April 2015 13:11 Go to next message
Eitan M. is currently offline Eitan M.Friend
Messages: 2
Registered: April 2015
Junior Member
Hi,

I know that by default SDL redirects stderr and stdout to text files created in the program executable's directory. However, I want to get console output instead of stdout.txt. How can I do this?

I saw some possible solutions, such as, adding the following code:
freopen( "CON", "w", stdout );
freopen( "CON", "w", stderr );

but none of them works.

In addition, SDL blocks the deubgger, and when I try to debug, I get the following message: No source available for "main() at 0x407dc0"
What can I do about that?

Thanks in advance!
Re: How can I get console output instead of stdout.txt when using SDL? [message #1691479 is a reply to message #1691353] Tue, 07 April 2015 14:12 Go to previous message
Eitan M. is currently offline Eitan M.Friend
Messages: 2
Registered: April 2015
Junior Member
By the way, the debugger works despite this message, you just should keep running untill the first breakpoint, and then it'll stop.
However, I didn't find any solution for the first problem (stdout), still waiting for one...
Previous Topic:Converting a C project to C++
Next Topic:Can Eclipse and MinGW 32 bit and 64 bit be on same computer?
Goto Forum:
  


Current Time: Mon Sep 23 17:58:45 GMT 2024

Powered by FUDForum. Page generated in 0.04194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top