Curses.h in linux

Asked by Indhra gandhi

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:
Last query:
Last reply:
Revision history for this message
John Pye (jdpipe) said :
#1

Try using 'ncurses.h' instead.

Revision history for this message
Shanmuhanathan T (shanmuha) said :
#2

Also ensure that you have libncurses5-dev installed.

Revision history for this message
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????????

Revision history for this message
Best John Pye (jdpipe) said :
#4

sudo apt-get install libncurses5-dev

Revision history for this message
Indhra gandhi (indira-ssn) said :
#5

Thanks alot John