Projects
Discord
Events
Jams
Unwind
Conferences
Resources
Forums
Fishbowls
Podcast
Newsletter
About
Manifesto
About the Team
Log In
← Back to index
MSVC Compiler don't see output of printf
Adrien
#23052
July 12, 2020
For exemple I saw 'hey!' only when I close the executable.
1
Print("Hey!\n");
Edited by
Adrien
on
July 12, 2020, 2:29pm
Reason: Initial post
Simon Anciaux
#23055
July 12, 2020
To be clear, you're trying to run one of your executable from 4coder ?
Could this be similar to this issue:
printf to buffer only appearing after buffer get to a size
?
Try adding
fflush( stdout );
after the prints to make sure they go out to the screen.
Adrien
#23056
July 12, 2020
Okay if I add fflush( stdout ); it work. But they is no other solution to just add fflush( stdout ); after each printf ?
Mārtiņš Možeiko
#23058
July 12, 2020
You can disable buffering on stdout with this:
1
setvbuf(stdout, NULL, _IONBF, 0);
Reply to Thread
← Back to index