This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Where is C++'s math.h's double abs(double)?


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;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]