Hello all,
I'm trying to compile a simple application like follows with winegcc, linking to msvcrt (which this test doesn't require, but it's a reduced test case):
#include <stdio.h> int main() { printf("Hello"); fflush(stdout); printf(", world!\n"); return 0; }
I compile it with this command: winegcc test.c -o test -lmsvcrt
Looks pretty harmless, but when I run it, it only prints "Hello" and hangs on fflush. If I don't link it to msvcrt, then it doesn't hang. Why is it so? Is it a bug in Wine?
Regards, Ruslan