This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: cmath and pow
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: cmath and pow
- From: Chris Prince <prince at wcug dot wwu dot edu>
- Date: Thu, 30 Sep 1999 15:17:17 -0700 (PDT)
On 30 Sep 1999, Gabriel Dos_Reis wrote:
> Chris Prince <prince@wcug.wwu.edu> writes:
>
> | I was just recently playing with a few functions and I noticed that the
> | pow method crashes my machine. Runs me right to a bus error.
>
> A misalignment?
>
> Hum... What do you get with the 'pow' from <math.h> (not <cmath>)
>
> If the result is different then I'll be interested in the prototype of
> pow() in <math.h>
the result is different, one crashes my machine the other does not (the
one that doesn't crash my machine is math.h).
Here are the two code fragments:
#include <math.h>
int main() {
double powertest = pow(2., 0);
}
#include <cmath>
int main() {
double powertest = pow(2., 0);
}
I only have one libm.a file (/usr/lib) Should there be a new libm.a that I
need to compile or something?
Chris :)
prince@wcug.wwu.edu
===================
What is "Windows 95/98"?
32 bit extensions for a 16 bit patch to an 8 bit operating system
originally coded for a 4 bit microprocessor written by a 2 bit company
that can't stand 1 bit of competition