This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Where is C++'s math.h's double abs(double)?
- To: libstdc++ at gcc dot gnu dot org
- Subject: Where is C++'s math.h's double abs(double)?
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Mon, 2 Apr 2001 14:16:47 -0700
- Cc: Jeffrey Oldham <oldham at codesourcery dot com>
- Organization: CodeSourcery LLC
Why is C++ program that includes math.h not able to access
double abs (double)
? libstdc++-v3/include/c_shadow/math.h seems to be the right file,
but it is not installed. libstdc++-v3/include/c_shadow/string.h also
seems not to be installed.
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
#include <iostream>
#include <math.h>
int main()
{
std::cout << abs (-1.23e+3) << std::endl;
return 0;
}