pardo@JUNE.CS.WASHINGTON.EDU (04/29/89)
Version: g++-1.34.2, from yahi.stanford.edu 28 April, 1989. libg++
1.34.0 from yahi.stanford.edu, long ago.
Machine: Vax 8550, Ultrix 2.3
Configured: using config.g++ vax
Problem: g++ 1.34.2 fails to compile libg++-1.34.0 because of noisy .h
files. G++ 1.34.0 compiled them.
I'm trying to build libg++.a. I cd to the root of the libg++
distribution, and type `make libg++.a'. The makefile cd's to `src'
and tries to build libg++. There are several files that g++ will not
compile because of implicit overloading.
\begin{verbatim}
cd /bigtmp/dist-libg++-1.34.0/src/
make -k libg++.a
g++ -g -O -fchar-charconst -I../g++-include -I.. -fsave-memoized -c Integer.cc
../g++-include/Integer.h:187: friend `even' implicitly overloaded
../g++-include/builtin.h:122: after declaration of non-overloaded `int even (long int)'
../g++-include/Integer.h:188: friend `odd' implicitly overloaded
../g++-include/builtin.h:127: after declaration of non-overloaded `int odd (long int)'
*** Error code 1
g++ -g -O -fchar-charconst -I../g++-include -I.. -fsave-memoized -c Rational.cc
../g++-include/Integer.h:187: friend `even' implicitly overloaded
../g++-include/builtin.h:122: after declaration of non-overloaded `int even (long int)'
../g++-include/Integer.h:188: friend `odd' implicitly overloaded
../g++-include/builtin.h:127: after declaration of non-overloaded `int odd (long int)'
*** Error code 1
`libg++.a' not remade because of errors
Compilation finished at Fri Apr 28 15:09:43
\end{verbatim}
More details upon request.
;-D on ( Stick together with Krazy GNU! ) Pardokevin%kalli@Sun.COM (Kevin Sheehan {Consulting Poster Child}) (05/02/89)
Whew - this was my first shot at g++, so I thought it was something I did. At any rate, sun3-4.0 gcc 1.35, g++ 1.34.2, libg++ 1.34.0 and I get the same 'friend even' errors in making libg++ - I'll provide details if someone wants it. In the meantime, is there some other version of the above that I can use as a workaround? l & h, kev