Results 1 to 2 of 2

Thread: curses/ncurses

  1. #1
    Join Date
    Aug 2011
    Beans
    3

    curses/ncurses

    hie i am having problems with compiling a c program that uses curses.h. i am using the gedit text editor on ubuntu 12.04. i installed gcc compiler, i have tried google but when i try the examples the do not seem to work all i get are errors of undefined functions like the initscr.

    Can any one help please maybe with a link to a tutorial that can help me through.

  2. #2
    Join Date
    Jul 2009
    Location
    Windhoek, Namibia
    Beans
    12
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: curses/ncurses

    use the -lncurses flag in your compilation:

    Code:
    gcc -o simple simple.c -lncurses

Bookmarks

Posting Permissions

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