Curses, foiled again.

foodog plug-discuss@lists.plug.phoenix.az.us
Sat, 04 May 2002 20:09:48 -0700


I know this belongs on the developers list, but I'm not susbscribed to
it, rarely code anymore, and beseach thee to gimme a break.

I'm trying to port a program written in VAX C circa 1988 that uses
Curses library calls. When I try to build it I get a bunch of errors,
specifically:

[steve@gemini steve]$ cc bedit.c
/tmp/ccNUfExw.o: In function `main':
/tmp/ccNUfExw.o(.text+0x14e): undefined reference to `initscr'
/tmp/ccNUfExw.o(.text+0x172): undefined reference to `newwin'
/tmp/ccNUfExw.o(.text+0x1d2): undefined reference to `endwin'
/tmp/ccNUfExw.o: In function `edit_buffer':
/tmp/ccNUfExw.o(.text+0x369): undefined reference to `wprintw'
/tmp/ccNUfExw.o(.text+0x39d): undefined reference to `wmove'
/tmp/ccNUfExw.o: In function `first_screen':
/tmp/ccNUfExw.o(.text+0x414): undefined reference to `wrefresh'
/tmp/ccNUfExw.o: In function `key_not_supported':
/tmp/ccNUfExw.o(.text+0x5b4): undefined reference to `werase'
... etc. etc. etc.
collect2: ld returned 1 exit status

I'm including stdio.h and curses.h.  The functions are listed in
curses.h so I'm hoping there's some compiler switch I'm missing out on. 
Also note:
$ rpm -qa | grep curses
ncurses-5.2-12
ncurses-devel-5.2-12

Anybody got a hint?  TIA,
Steve