我正在尝试编译一个使用 Armadillo C++ 库进行线性代数和科学计算的 C++ 程序。当我给出命令时:
g++ gen_data.cpp -o test -DARMA_DONT_USE_WRAPPER -lopenblas -llapack
我收到如下错误:
In file included from /usr/include/armadillo:23,
from gen_data.cpp:7:
/usr/include/armadillo_bits/compiler_check.hpp:67:65: note: #pragma message: WARNING: option ARMA_DONT_USE_CXX11 ignored
67 | #pragma message ("WARNING: option ARMA_DONT_USE_CXX11 ignored")
| ^
/usr/bin/ld: cannot find -lopenblas
collect2: error: ld returned 1 exit status
请帮助我,提前谢谢。