Results 1 to 3 of 3
I have used a new header file named curses.h in my program.when i try to compile my program it shows me the following error "No such path or directory".What may ...
- 03-14-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 1
compile a unix program in opensuse
I have used a new header file named curses.h in my program.when i try to compile my program it shows me the following error "No such path or directory".What may be the problem?A part of the program is shown below
#include<unistd.h>
#include<stdlib.h>
#include<curses.h>
#include<string.h>
#include<ctype.h>
void init_curses()
{
initscr();
getmaxyx(stdscr,LINES,COLS);
start_color();
init_pair(1,COLOR_WHITE,COLOR_BLUE);//for editor
init_pair(2,COLOR_BLUE,COLOR_WHITE);//for menu
init_pair(3,COLOR_RED,COLOR_WHITE);//for shortcur key
init_pair(4,COLOR_BLUE,COLOR_CYAN);//for welcome
init_pair(5,COLOR_BLACK,COLOR_RED);//for welcome
init_pair(6,COLOR_MAGENTA,COLOR_YELLOW);
noecho();
keypad(stdscr,TRUE);
cbreak();
}
- 03-14-2009 #2
I found this link...it might help you
Linux Online - Hello World !!!
Hope this helps GerardMake mine Arch Linux
- 03-14-2009 #3
Be sure you have the ncurses-devel package installed.
You always need the development package installed when linking to a library.


Reply With Quote