🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Pete Meyer Sat, 08 Aug 1992 04:43
Problem with ostream on SunOS4.1.2 with gcc2.2.2
#96
Author: Pete Meyer
Date: Sat, 08 Aug 1992 04:43
20 lines
969 bytes
I've been writing bc++ on a PC until recently when gcc2.2.2 was installed
on our Sparcs. When I compile the following program I receive the error
message:
	ld: Undefined symbol
	   __$_7ostream
	collect: /usr/bin/ld returned 2 exit status
Is there some additional include file I am missing or is there some
other problem at work here?

#include <ostream.h>

main(){
	FILE*	file;
	ostream	out( file );
	char	fname[]="file.t2";
	out.open( fname,output );
	out << "Hello, World!\n";
	out.close();
	return 0;
}
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads