Shougo/fakecygpty

how to compile this fakecygpty.c in MinGw32

Closed this issue · 3 comments

$ gcc fakecygpty.c -o fakecygpty.exe
fakecygpty.c:44:21: fatal error: termios.h: No such file or directory
compilation terminated.

You must compile it in Cygwin environment. Not MinGW32.

I have the same problem - I am using a Cygwin terminal under windows 7 64-bit.

$ gcc -o fakecygpty.exe fakecygpty.c
fakecygpty.c:45:21: fatal error: termios.h: No such file or directory
compilation terminated.

$ uname -a
CYGWIN_NT-6.1 nb723103w7 1.7.33-2(0.280/5/3) 2014-11-13 15:47 x86_64 Cygwin

You should check your gcc path.
I think it is not Cygwin GCC.