Find the answer to your Linux question:
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 ...
  1. #1
    Just 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();
    }

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    I found this link...it might help you

    Linux Online - Hello World !!!

    Hope this helps Gerard
    Make mine Arch Linux

  3. #3
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Be sure you have the ncurses-devel package installed.

    You always need the development package installed when linking to a library.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...