Subject: Re: Problem with g++
To: Rainer Doemer <doemer@osiris.ics.uci.edu>
From: David Brownlee <abs@anim.dreamworks.com>
List: netbsd-help
Date: 09/09/1997 18:00:12
	You need to add -ltermcap after -lcurses on the command line -
	the curses man page should probably have a caveat about this...


		David/abs

  -- "Its hard to say it... I hate to say it... but its probably me..." --

On Tue, 9 Sep 1997, Rainer Doemer wrote:

> 
> Hello World,
> 
> I have a problem with compiling C++ programs unter NetBSD1.2.1 Amiga.
> Every program I compile with g++ complains about:
> 
> /usr/libexec/ld.so:
> Undefined symbol "_tgetstr" in main:/usr/lib/libcurses.so.2.1
> 
> For example, the famous HelloWorld.c compiles without warnings
> and errors with "g++ main.cc -o main1", but
> gives me the error above when I call "./main1".
> However, using "gcc main.cc -o main2" gives an executable
> that is without problems.
> 
> Why is libcurses missing a symbol, that is not detected at
> compile time???
> What am I doing wrong?
> 
> Rainer
> 
> My system: Amiga 3000, 16+2 Mb, NetBSD 1.2.1
> 
> ------------------------------------------------------------------
> Rainer Doemer               email: rainer@pal-ts1-077.slip.uci.edu
> Information and Computer Science            or: doemer@ics.uci.edu
> University of California, Irvine   http://www.ics.uci.edu/~doemer/
> ------------------------------------------------------------------
>