math.h OR cmath includes

Jason Merrill jason@cygnus.com
Sun Oct 4 01:36:00 GMT 1998


>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:

 > Helmut Jarausch <jarausch@IGPM.Rwth-Aachen.DE> writes:
 >> using version 1.1a on my SGI machine (IRIX6.2 Compilers 7.2)

 >> #include <math.h>

 >> The point is, that this does NOT have any    double abs(double)

 > Was it supposed to?  math.h is a C header-file, so it is not supposed
 > to declare any C++-only functions.

Actually, it is extended by the C++ standard to be like <cmath> with using
declarations to promote the functions into the global namespace.

Jason



More information about the Gcc-bugs mailing list