![/usr/bin/ld:找不到 -lopenblas collect2:错误:ld 返回 1 退出状态](https://linux22.com/image/1027076/%2Fusr%2Fbin%2Fld%EF%BC%9A%E6%89%BE%E4%B8%8D%E5%88%B0%20-lopenblas%20collect2%EF%BC%9A%E9%94%99%E8%AF%AF%EF%BC%9Ald%20%E8%BF%94%E5%9B%9E%201%20%E9%80%80%E5%87%BA%E7%8A%B6%E6%80%81.png)
我正在尝试编译一个使用 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
请帮助我,提前谢谢。