Subject: None
To: CHAN Yiu Wah <clarence@cs.cuhk.hk>
From: Alistair G. Crooks <azcb0@uts.amdahl.com>
List: current-users
Date: 12/13/1995 06:53:32
> I encountered the following problem when I tried to compile gnu using
> the following procedures
> 
>   - cd /usr/src/gnu
>   - make && make install && make cleandir
> 
> ===== error message ====
> /usr/src/gnu/lib/libg++/libg++/Fix24.h: In function `class Fix24
> operator >>(const class Fix24 &, int)':
> In file included from Fix24.cc:27:
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:358: call of overloaded
> constructor `Fix24(long unsigned int)' is ambiguous
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:273: candidates are:
> Fix24::Fix24(double)
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:253:
> Fix24::Fix24(int)
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:248:
> Fix24::Fix24(long int)
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:358: in base initialization for
> class `Fix24'
> /usr/src/gnu/lib/libg++/libg++/Fix24.h: In method `Fix48::~Fix48()':
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:439: warning: `Fix48::~Fix48()'
> was used before it was declared inline
> /usr/src/gnu/lib/libg++/libg++/Fix24.h:160: warning: previous non-inline
> declaration here
> *** Error code 1
> 
> Stop.

This typically happens when you try to compile an old version of
libg++ with a new version of gcc.  e.g.  libg++ in the source tree is
libg++ version 2.4, and you're compiling with a 2.7.x (or I think a
2.6.2+) version of g++.

Check your path, and make sure the correct g++ is called.

Cheers,
Alistair
--
Alistair G. Crooks (agc@uts.amdahl.com)                    +44 125 234 6377
Amdahl European HQ, Dogmersfield Park, Hartley Wintney, Hants RG27 8TE, UK.
[These are only my opinions, and certainly not those of Amdahl Corporation]