Maybe we are not using the correct header file (#include <cmath> vs <math.h> vs <math>)

daltomi

12-11-2013, 04:11 PM

If you're right.
I propose the following:
The project is compiled with the standard "-std=c++0x".
Standard say for cmath:

The contents of these headers are the same as the Standard C library headers <math.h> and <stdlib.h>
respectively, with the following changes:
8 - In addition to the double versions of the math functions in <cmath>, C++ adds float and long double
overloaded versions of these functions, with the same semantics.