Compilation with winegcc and linking with msvcrt
Ruslan Kabatsayev
b7.10110111 at gmail.com
Thu Aug 18 15:10:05 CDT 2016
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
More information about the wine-devel
mailing list