This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Undefined symbol problem, curses.h


Try:

gcc -o test test.c -lcurses

HTH,
--ag


kjohnson@sdi-inc.com wrote:
> 
> Hi all,
> 
> I'm writing a small test program that includes curses.h, but I get
> undefined symbol errors for functions that are defined in curses.h.
> After reading a past message from this forum I tried adding -lcurses
> to my compile command but it didn't help.  Here's the compile commands
> I've tried:
> 
> gcc -o test test.c
> gcc -lcurses test.c
> 
> Both give the same error:
> 
> Undefined                       first referenced
>  symbol                             in file
> noecho                              /var/tmp/ccjpehU_1.o
> endwin                              /var/tmp/ccjpehU_1.o
> initscr32                           /var/tmp/ccjpehU_1.o
> halfdelay                           /var/tmp/ccjpehU_1.o
> wgetch                              /var/tmp/ccjpehU_1.o
> stdscr                              /var/tmp/ccjpehU_1.o
> 
> I'm sure the problem is in my compile command but I'm stuck.
> 
>  Any help will be greatly appreciated,
> 
> Kent

-- 
Artie Gold, Austin, TX
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
"If you come to a fork in the road, take it." L. P. Berra


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]