On Thu, 23 Jan 2020 01:00:11 +0900
Takashi Yano wrote:
> /* Test code */
> #include <windows.h>
> #include <stdio.h>
>
> int main()
> {
> DWORD n;
> printf("AAAA\n");
> WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), "BBBB\r\n", 6, &n, 0);
> return 0;
> }The problem occurs when the code above is compiled as cygwin binary. Not windows native binary. In other words, use cygwin-gcc rather than mingw-gcc. -- Takashi Yano <[email protected]>
