Math interface vs cMath in C++
The interface on my build system MacOS 10.6.3 for the POSIX math library is math.h, however on my target system the name of the interface file is cmath.h. At school we use cmath and I would like to be sure my project compiles when it is handed in, how is this achieved. The servers and workstations at school are x86 running Windows XP. The GCC is available on both platforms. In the C++ standard, the math library functions are defined in two headers: <cmath> contains them in the namespace std (e.g. std::sin ), while <math.h> contains them in the global namespace (so just sin ). There are further