Subject: Problem with g++
To: None <netbsd-help@NetBSD.ORG>
From: Rainer Doemer <doemer@osiris.ics.uci.edu>
List: netbsd-help
Date: 09/09/1997 15:25:11
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/
------------------------------------------------------------------