View Full Version : curses/ncurses

June 25th, 2012, 11:06 AM
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.

July 23rd, 2012, 02:07 PM
use the -lncurses flag in your compilation:

gcc -o simple simple.c -lncurses