installation of ncurses
i use the command for installing ncurses library which is given by you
admin@ramki:~$ sudo apt-get install ncurses-dev
[sudo] password for admin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 314 not upgraded.
that means it is already installed
and i do a basic "hello world "program and the code is
#include <ncurses.h>
int main()
{
initscr(); /* Start curses mode */
refresh(); /* Print it on to the real screen */
getch(); /* Wait for user input */
endwin(); /* End curses mode */
return 0;
}
i compiled using gnu compiler and command is gcc filename
and it gives that
#include <ncurses.h>
int main()
{
initscr(); /* Start curses mode */
refresh(); /* Print it on to the real screen */
getch(); /* Wait for user input */
endwin(); /* End curses mode */
return 0;
}
and i would like to know what is the fault is installation or in program if in installation please tell me how it could be?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask prasad.ram for more information if necessary.