Ubuntu Forums Archive Viewer

curses/ncurses

Archived thread 2010125 from Ubuntu Application Development. Markdown source: Ubuntu_Application_Development/thread_2010125_cursesncurses.md

Original URL About this archive
#1

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

use the -lncurses flag in your compilation:

gcc -o simple simple.c -lncurses