home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!darwin.sura.net!jvnc.net!princeton!bessel!mikulska
- From: mikulska@bessel.Princeton.EDU (Margaret Mikulska)
- Newsgroups: comp.sys.sgi
- Subject: Re: gcc2.2.2 on Iris Crimson (HELP!)
- Message-ID: <1992Aug27.155700.9756@Princeton.EDU>
- Date: 27 Aug 92 15:57:00 GMT
- References: <TOTSUKA.92Aug27145458@avaia.av.crl.sony.co.jp> <1992Aug27.131203.11184@dcs.warwick.ac.uk>
- Sender: news@Princeton.EDU (USENET News System)
- Distribution: comp
- Organization: Princeton University
- Lines: 30
- Originator: news@nimaster
- Nntp-Posting-Host: bessel.princeton.edu
-
- In article <1992Aug27.131203.11184@dcs.warwick.ac.uk> steve@maths.warwick.ac.uk (Steve Rumsby) writes:
- >In article <TOTSUKA.92Aug27145458@avaia.av.crl.sony.co.jp>, totsuka@av.crl.sony.co.jp (Takashi Totsuka) writes:
- >>
- >> Is there anyone who has successfully installed GCC(G++)2.2.2 and
- >> libg++2.2.2 on IRIS Crimson ?
- >>
- >> I am having a strange problem with one of the test program
- >> (tComplex.cc). The sqrt() method of Complex class returns
- >> different value each time it is called with the same constant
- >> arguments... Specifying -mcpu=r4000 didn't help.
- >>
- >> I appreciate any suggestions. Thanks in advance.
- >>
- >Same things happens on a R3000 Indigo too. I finally trace the problem
- >to the hypot function in the C library (SGI's library, not glibc) which
- >was returning bizarre results, but only after printing a double on cout!
- >I couldn't see any way that these two functions could interfere with
- >each other, so I gave up at that point. If anybody has any ideas about
- >what might be going on, I'd love to hear them.
-
- I assume you mean the math library, since math functions in C require
- linking with libmath.a, and that you mean the hypotenuse in a right-angled
- triangle. Some 6 years ago we were doing some programming on a 3130,
- and we discovered that this particular math function was broken; I
- believe that this turned out to be an acknowledged bug in the code for
- this function. (I don't recall if the results were _always_ wrong, or
- only under some circumstances.) Could it be that is has never been fixed?
-
- -Margaret
- mikulska@astro.princeton.edu
-