Dear All, I was trying to understand why this code #include <iostream> #include <complex>
int main() { double a = 0; double b = 1. / a; a += 1; std::cout << std::abs (std::complex<double> (b, a)) << '\n'; } produce Inf on most platform and NaN on cygwin. I found that newlib have the function cabs (complex absolute) but in cygwin the prototypes is extern double cabs(); so just a placeholder but not a useful function. There is any reason why cygwin is missing functional C99 complex functions ? For what I can see mingw has not such limitation in /usr/include/mingw/complex.h double __MINGW_ATTRIB_CONST cabs (double _Complex); Thanks Marco -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/