While writing a simple C Program i encountered the problem that "printf" doesn't generate any outcome. Code:
#include<stdio.h>
int main()
{
printf("Hello World\n");
}
Cygwin log after compiling and running:
MMGV@Philipp /cygdrive/c/users/MMGV/Desktop/Programme
$ gcc test.c -o test.exe
MMGV@Philipp /cygdrive/c/users/MMGV/Desktop/Programme
$ test.exe
MMGV@Philipp /cygdrive/c/users/MMGV/Desktop/Programme
$
No error message, simply nothing. Opening the generated .exe in the Windows GUI does not work either. Thanks for any help!
\nafter your message. Buffers may not be flushed if no end of line../helloat a shell prompt? Did you double-click on the.exefile in the Windows GUI?getchar()at the end of the program, or run it from a console window.\nadvised by Jean-F), the command line you have used to build it, all the compiler output generated during build, and the command line you have used to run the code - a verbatim log of your entire Cygwin session in short.