Article View: gnu.g++.lib.bug
Article #514All of libg++ and friends compile except for ...
From: barry
Date: Wed, 17 May 1989 22:55
Date: Wed, 17 May 1989 22:55
31 lines
1291 bytes
1291 bytes
g++-1.35.0 from Labrea
libg++-1.35.0 also from Labrea
When compiling the files in the tests directory I run into one problem.
tRational.cc gets the following error:
(cd src; make GXX="g++" CC="gcc")
(cd tests; make GXX="g++" LIBDIR="/usr/local/gnu/lib")
g++ -g -O -fchar-charconst -I../g++-include -I. -fstrength-reduce -c tRational
.cc
In function void etest (long int):
tRational.cc:168: call of overloaded `log' is ambiguous
tRational.cc:169: call of overloaded `log' is ambiguous
*** Error code 1
The code in question:
void etest(long n)
{
cout << "approximating e as pow(1+1/n),n) for n =" << n << "\n";
Rational approxe = estimate_e(n);
assert(approxe.OK());
cout << "double(approxe) = " << double(approxe) << "\n";
cout << "log(approxe) = " << log(approxe) << "\n";
assert(log(approxe) <= 1.0);
cout << "approxe = " << approxe << "\n";
}
barry
Technical Details
Message-ID:
<8905172255.AA00715@confusion.ads.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ADS.COM!barryShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ADS.COM!barry From: barry@ADS.COM Newsgroups: gnu.g++.lib.bug Subject: All of libg++ and friends compile except for ... Message-ID: <8905172255.AA00715@confusion.ads.com> Date: 17 May 89 22:55:23 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31