https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59087
--- Comment #14 from Vitali <vlovich at gmail dot com> --- Actually, found a better workaround for lapacke. Adding #include <ccomplex> #define lapack_complex_float std::complex<float> #define lapack_complex_double std::complex<double> before I include <lapacke.h> causes lapacke.h to avoid including complex.h & this is the officially supported mechanism for lapacke. It's strange that they don't just do that automatically.