This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined symbol problem, curses.h
- To: help-gcc at gnu dot org
- Subject: Re: Undefined symbol problem, curses.h
- From: Arthur Gold <agold at bga dot com>
- Date: Wed, 03 Nov 1999 12:08:02 -0600
- Newsgroups: gnu.gcc.help
- References: <38206b91.10571826@news.traveller.com>
- Xref: wodc7nx0 gnu.gcc.help:1669
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