Subject: Trouble compiling libg++-2.6.2
To: None <netbsd-help@NetBSD.ORG>
From: Douglas Thomas Crosher <dtc@scrooge.ee.swin.oz.au>
List: netbsd-help
Date: 03/01/1995 22:02:20
I have been trying to compile libg++-2.6.2 on a NetBSD-1.0 i486
machine, but I get an error - see below - when compiling.

I have installed gcc-2.6.3, this seems to be OK, although it could be
the cause of the problem; my understanding of c++ is to limited to say.

libg++ does compiles on a Sun OS 5.3 sparc with gcc-2.6.3; this makes
me suspect something related to my installation of NetBSD.

Does anyone have any clues?

Regards
Douglas Crosher


Partial output of the make of libg++, showing the directory and files
that are giving me trouble:

gmake[2]: Entering directory `/usr/libg++-2.6.2/libg++/src'
/usr/local/bin/gcc -O2 -c -g -nostdinc++ -I. -I../../libio -I. -I./../../libio const-I./../src  Fix.cc
Fix.cc: In function `static struct Fix::Rep * Fix::multiply(const struct Fix::Rep *, const struct Fix::Rep *, struct Fix::Rep * = 0)':
Fix.cc:301: call of overloaded constructor `Fix(unsigned int)' is ambiguous
./Fix.h:232: candidates are: Fix::Fix(const Fix &)
./Fix.h:218:                 Fix::Fix(int)
./Fix.h:226:                 Fix::Fix(double)
Fix.cc:301: in base initialization for class `Fix'
Fix.cc:301: call of overloaded constructor `Fix(unsigned int)' is ambiguous
./Fix.h:232: candidates are: Fix::Fix(const Fix &)
./Fix.h:218:                 Fix::Fix(int)
./Fix.h:226:                 Fix::Fix(double)
Fix.cc:301: in base initialization for class `Fix'
Fix.cc: In function `static struct Fix::Rep * Fix::divide( struct Fix::Rep *, const struct Fix::Rep *, struct Fix::Rep * = 0, struct Fix::Rep * = 0)':
Fix.cc:371: call of overloaded constructor `Fix(unsigned int)' is ambiguous
./Fix.h:232: candidates are: Fix::Fix(const Fix &)
./Fix.h:218:                 Fix::Fix(int)
./Fix.h:226:                 Fix::Fix(double)
Fix.cc:371: in base initialization for class `Fix'
Fix.cc:386: call of overloaded constructor `Fix(unsigned int)' is ambiguous
./Fix.h:232: candidates are: Fix::Fix(const Fix &)
./Fix.h:218:                 Fix::Fix(int)
./Fix.h:226:                 Fix::Fix(double)
Fix.cc:386: in base initialization for class `Fix'
gmake[2]: *** [Fix.o] Error 1