Subject: Re: Bizarre g++ behavior on sparc
To: Aaron Brown <abrown@eecs.harvard.edu>
From: Arthur Hoffmann <hoffmann@it.ntu.edu.au>
List: current-users
Date: 05/02/1996 16:45:19
> 
> Has anyone had trouble with g++ on the sparc port (specifically the Sun4m)
> or any other port recently? This simple program:
> 
> #include <iostream.h>
> #include <fstream.h>
> 
> int main(void)
> {
> 	char c = 'x';
> 	ifstream in("test");
> 
> 	if (in)
> 		in.get(c);
> 
> 	cout << "Read char " << c << endl;
> 	return 0;
> }
> 

Hmm, compiling this on NetBSD1.1B built last week on an Amiga I get
the following:

root@atze(2)$ g++ test.cc 
root@atze(3)$ dir a.out 
-rwxr-xr-x  1 root  wheel  17552 May  2 16:37 a.out*
root@atze(4)$ a.out 
/usr/libexec/ld.so: Undefined symbol "_tgetstr" in
a.out:/usr/lib/libcurses.so.2.1


hmm doesn't segfault, but hey....

Arthur.
hoffmann@it.ntu.edu.au