*BSD News Article 35732


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!travelers.mail.cornell.edu!newsstand.cit.cornell.edu!samuel!ejr
From: ejr@ee.cornell.edu (Eric Rossin)
Newsgroups: comp.os.386bsd.questions
Subject: help needed for gcc-2.6.0 under FreeBSD-1.1.5.1
Followup-To: comp.os.386bsd.questions
Date: 12 Sep 1994 15:04:04 GMT
Organization: Electrical Engineering, Cornell University
Lines: 32
Sender: er14@cornell.edu (Verified)
Distribution: world
Message-ID: <351ql4$nc3@newsstand.cit.cornell.edu>
NNTP-Posting-Host: cu-dialup-0314.cit.cornell.edu
Keywords: FreeBSD, gcc-2.6.0

hi all-

has anyone successfully installed gcc-2.6.0 under FreeBSD-1.1.5.1?
I was able to build gcc-2.6.0 and libg++-2.6 (after a couple patches
I found posted), but I am having trouble with "iostream.h". For example,
when I try to compile the following:

	#include <iostream.h>
	main (void)
	{
  	cout << "Hello, world!\n";
  	return 0;
	}

I get the error:

In file included from /usr/include/g++/iostream.h:24,
                 from test.cc:1:
/usr/include/g++/streambuf.h:187: `ios::operator void *(...)' must take `void'
/usr/include/g++/streambuf.h:187: confused by earlier errors, bailing out

this fragment compiles fine under g++-2.4.5. I tried to install 2.6.0 in
/usr/local/bin and libg++-2.6 under /usr/local/lib (these are the default
locations for install). I then renamed /usr/include/g++ to g++-2.4.5, and
linked /usr/include/g++ to the new files from 2.6. The goal is to be able
to have both gcc that comes stock with 1.1.5.1 and 2.6.0 resident.

what am I doing wrong?

thanks in advance... feel free to e-mail me directly at ejr@ee.cornell.edu

-eric