我使用Windows1064位的代码块20.03,使用cygwin32位,我正在尝试包含#include <termios.h>位,它给我提供了fatal error: sys/termios.h: No such file or directory
根据this reply的说法,我认为cygwin应该有termios,我可以默认包括它。
发布于 2021-03-11 23:28:13
查找合适的devel包:
$ cygcheck -p "sys/termios.h"
Found 11 matches for sys/termios.h
cygwin-devel-3.0.7-1 - cygwin-devel: Core development files
...
cygwin-devel-3.1.7-1 - cygwin-devel: Core development files
cygwin-devel-3.2.0-0.1 - cygwin-devel: Core development files
...安装包含所有cygwin标头的cygwin-devel包
$ cygcheck -c cygwin-devel
Cygwin Package Information
Package Version Status
cygwin-devel 3.1.7-1 OK
$ cygcheck -l cygwin-devel |grep termios
/usr/include/termios.h
/usr/include/machine/termios.h
/usr/include/sys/termios.hhttps://stackoverflow.com/questions/66585206
复制相似问题