Subject: Re: Problems with g++
To: None <asterr@POMONA.EDU>
From: David Bushong <dbushong@cory.EECS.Berkeley.EDU>
List: port-mac68k
Date: 05/26/1997 15:06:51
This is a know problem. Compile all your C++ code with -ltermlib and
it'll work.. Don't ask, I don't know.
--David Bushong
On Mon, 26 May 1997 asterr@POMONA.EDU wrote:
> Hello, I am not sure if this is the appropriate list, but this is the one
> I normally read.
>
> I am planning on using my NetBSD box as a programming platform, but I have
> run into a fairly serious problem with g++. It is probably due to my own
> ignorance, as I am sure that many people are using it successfully.
>
> Here's the problem. Any attempt to use a printf() or a cout results in
> the following runtime error:
> /usr/libexec/ld.so: Undefined symbol "_tgetstr" in test.out:
> /usr/lib/libcurses.so.2.1
>
> I first discovered the problem in a more complex piece of code, but even
> this simple program causes the problem:
> //test.C
> #include <stdio.h>
>
> main()
> {
> printf("Hello world.");
>
> return 0;
> }
>
> I compiled test.out with the following command:
> g++ test.C -otest.out
>
> If I change the name and compile it with gcc, then there is no problem,
> but I would really rather program in C++.
>
> If it matters, I am using NetBSD 1.2.1 (3/17/97) on a MacIIcx with 8 MB of
> RAM. Since I don't have my own monitor, I have set the booter to use a
> serial console which I am sending to a Powerbook 100.
>
> TIA.
>
> Aaron Sterr
>
>