Linux Errors:
Under Linux environment, some errors have been found:
term.h: No such file or directory and curses.h: No such file or directory
Solution:
we need ncurses lib. type command in your Linux( Suppose Linux is Ubuntu ):[1]
1 | sudo apt-get install libncurses5-dev |
After the above command is run correctly, then you can compile and link your c(cpp) source code(for example, a.c) by using ncurses Lib:
1 | gcc -o a.out a.c -lncurses |
It's noticed that you should not forget typing "-lncurses".
本文提供了解决Linux环境下编译时出现找不到term.h和curses.h错误的方法,通过安装ncurses库并正确链接,可以顺利解决该问题。

4632

被折叠的 条评论
为什么被折叠?



