4coder»Forums
Adrien
6 posts
MSVC Compiler don't see output of printf
Edited by Adrien on Reason: Initial post
For exemple I saw 'hey!' only when I close the executable.
1
Print("Hey!\n");
Simon Anciaux
1337 posts
MSVC Compiler don't see output of printf
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
6 posts
MSVC Compiler don't see output of printf
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
2559 posts / 2 projects
MSVC Compiler don't see output of printf
You can disable buffering on stdout with this:
1
setvbuf(stdout, NULL, _IONBF, 0);