Curses.h in linux

Asked by Indhra gandhi on 2008-10-08

I tried to include header file <curses.h> in my C program and compiled tat in linux.. I'm getting the following error.. pls help me

gcc -o hello hello.c -l curses
hello.c:2:20: error: curses.h: No such file or directory

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ncurses Edit question
Assignee:
No assignee Edit question
Solved by:
John Pye
Solved:
2008-10-09
Last query:
2008-10-09
Last reply:
2008-10-08
John Pye (jdpipe) said : #1

Try using 'ncurses.h' instead.

Shanmuhanathan T (shanmuha) said : #2

Also ensure that you have libncurses5-dev installed.

Indhra gandhi (indira-ssn) said : #3

Thanks John.. I already tried it but it dint work

Thanks shanmuhanathan but how to ensure that libncurses5-dev is installed????????

Best John Pye (jdpipe) said : #4

sudo apt-get install libncurses5-dev

Indhra gandhi (indira-ssn) said : #5

Thanks alot John