首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cygwin找不到termios.h

Cygwin找不到termios.h
EN

Stack Overflow用户
提问于 2021-03-11 23:07:00
回答 1查看 267关注 0票数 0

我使用Windows1064位的代码块20.03,使用cygwin32位,我正在尝试包含#include <termios.h>位,它给我提供了fatal error: sys/termios.h: No such file or directory

根据this reply的说法,我认为cygwin应该有termios,我可以默认包括它。

EN

回答 1

Stack Overflow用户

发布于 2021-03-11 23:28:13

查找合适的devel包:

代码语言:javascript
复制
$ 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

代码语言:javascript
复制
$ 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.h
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66585206

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档