building g++

Homer Neal neal@hepvms.physics.yale.edu
Mon Jan 25 08:02:00 GMT 1999


To whom it may concern,

I've been trying to install g++ on an alpha-dec-osf4.0d system.
After following all the steps I've tried compiling routines that
I know compile on other alpha systems but it fails in iostream and
streambuf on mine. To illustrate the problem I've created the
simplest example:

#include <iostream.h>

void main()
{
   cout << "Testing\n";
}

If I then do g++ 
 test.cpp -o testcpp

I get the following error messages:
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:238: new
declaration `void * ios::pword(int)'
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:237: ambiguates
old declaration `void *& ios::pword(int)'
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:238:
`ios::pword(int)' is already defined in the class ios
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:240: new
declaration `long int ios::iword(int)'
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:239: ambiguates
old declaration `long int & ios::iword(int)'
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:240:
`ios::iword(int)' is already defined in the class ios
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:403: type
specifier omitted for parameter
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:403: parse error
before `,'
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:405: type
specifier omitted for parameter
/group/ppg/prj/lcd/egcs/local/include/g++/streambuf.h:405: parse error
before `)'
/group/ppg/prj/lcd/egcs/local/include/g++/iostream.h:75: type specifier
omitted for parameter
/group/ppg/prj/lcd/egcs/local/include/g++/iostream.h:75: parse error
before `)'
/group/ppg/prj/lcd/egcs/local/include/g++/iostream.h:192: type specifier
omitted for parameter
/group/ppg/prj/lcd/egcs/local/include/g++/iostream.h:192: parse error
before `)'

Could you please give me some hints as to what might have gone wrong
when I built g++.

By the way, I used 
  egcs-1.1.1.tar.gz
to build it.

Many thanks for any help you may offer.

Cheers,
     Homer



More information about the Gcc-bugs mailing list