There is a bug that occur when compiling with the -ansi
and when including <cmath> header.
a simple test :
$ gcc -c test.cpp
In file included from base_math_test.cpp:1:
c:/tools/mingw/include/c++/3.2/cmath: In function
undeclared (first use here)
The problem is that _mingw.h define
_GLIBCPP_HAVE_ACOSF even when compiling with -ansi
but math.h does not declare the acosf() function if
__STRICT_ANSI__ is not defined.