Problem when compiling with -std=c++11
I was using LAPACKEin a project that makes use of C++11 features, and hence when it compiles with g++, it uses the 'std=c++11' flag. This flag seems to be incompatible with the current lapacke.h, or at least the way I am using it is incorrect. I made a minimal working example that reproduces the problem below.
It works fine when I compile with:
$ g++ -c test_lapack.cpp
but if I add the c++11 flag:
$ g++ -std=c++11 -c test_lapack.cpp
I get a massive amount of errors (see attachment to this post). I'm guessing this is because things in c++11 got more strict and now things that used to be fine in c++03 or c++98 are now deemed unsafe or deprecated. I don't know if I should be contacting the GNU gcc/g++ people or if this is something in the domain of LAPACK developers, or maybe there is an additional flag I can add that will suppress these errors?
- Code: Select all
#include <lapacke.h>
int main() {}
It works fine when I compile with:
$ g++ -c test_lapack.cpp
but if I add the c++11 flag:
$ g++ -std=c++11 -c test_lapack.cpp
I get a massive amount of errors (see attachment to this post). I'm guessing this is because things in c++11 got more strict and now things that used to be fine in c++03 or c++98 are now deemed unsafe or deprecated. I don't know if I should be contacting the GNU gcc/g++ people or if this is something in the domain of LAPACK developers, or maybe there is an additional flag I can add that will suppress these errors?