term.h: No such file or directory, curses.h: No...

2012/08/19 20:16
阅读数 1.2K

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".

Reference:

  1. CSDN
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部