How to add the ncurses.h to a C++ program compiled on gcc?

Solution 1:

on ubuntu:

install ncurses library (packages for developers has "-dev" postfix)

sudo apt-get install libncurses5-dev

for each package, in /usr/share/doc/{package name}/ you can find documentation.

Open this URL file:///usr/share/doc/libncurses5-dev/html/index.html in your browser.

Have fun.