linuxgccncursesconio

'ncurses.h' as well as 'conio.h' not found


So I'm using Ubuntu 14.04 LTS and I realized while compiling code using Eclipse CDT as well as general C programs in a text editor executed using the Terminal that the system has no 'conio.h' library file installed. I read up on it, and as an alternative, tried to utilize the 'ncurses.h' file and it's functions but it tells me there's no such library file either.

Now I'm wondering is it possible that there's something wrong with my GCC entirely or is this a common issue and can be resolved by manually installing both files?

Edit : So it worked out for me and this is what I did

It required me to install ncurses-doc and THEN ncurses-dev :

sudo apt-get install ncurses-doc

sudo apt-get install ncurses-dev

This automatically installed everything for me including the dependencies and library files so I'd reckon whoever has the same issue, if you haven't tried a manual install by downloading the file and configuring it give this a try first.


Solution

  • Have you installed ncurses?

    sudo apt-get install ncurses-dev