C++ compiler problems with FC2
Paul
paul at all-the-johnsons.co.uk
Tue Aug 31 06:43:39 UTC 2004
Hi,
> Yes, explicitly converting those constants to doubles is a good idea:
> {
> cout << "sine 63 = " << sin(double(63)) << endl;
Really speaking for C++, that should be
cout << "sine 63 = " << sin(static_cast<double>(54)) << endl;
> which then compiles cleanly on my FC2 install (gcc 3.3.3).
But even that shouldn't be needed to compile. It wasn't from 2.96 up!
double sin(double x);
TTFN
Paul
--
"Our enemies are innovative and resourceful - and so are we,"
"They never stop thinking about new ways to harm our country and our
people - and neither do we." - George W. Bush, Aug 2004
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20040831/db31398a/attachment.sig>
More information about the fedora-test-list
mailing list