我正在自学C。我一直在学习如何使用C制作文本编辑器的教程这里,我已经安装了cygwin,并在教程的基础上安装了必要的部分。当我碰到编译器错误时,我已经读到了第2页。
$ make
cc kilo.c -o kilo -Wall -Wextra -pedantic -std=c99
kilo.c: In function ‘enableRawMode’:
kilo.c:33:9: error: variable ‘raw’ has initializer but incomplete type
struct termois raw = orig_termios;
^~~~~~~
kilo.c:33:17: error: storage size of ‘raw’ isn’t known
struct termois raw = orig_termios;
^~~
kilo.c:33:17: warning: unused variable ‘raw’ [-Wunused-variable]
make: *** [Makefile:2: kilo] Error 1我的代码与这一页教程中的代码相同,因为我对C完全陌生--我不完全理解问题所在,也不完全了解如何修复它。
我不知道我在做什么。
发布于 2020-02-04 03:13:01
这是一个错误:termois应该是termios
struct termios raw = orig_termios;https://stackoverflow.com/questions/60049947
复制相似问题