联系
Knight's Tale » 技术

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

2011-01-07 20:31

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]
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:
gcc -o a.out a.c -lncurses
It's noticed that you should not forget typing "-lncurses".

Reference:

  1. CSDN