Armadillo + BLAS + LAPACK

徘徊边缘 提交于 2021-01-29 12:31:23

问题


I am using the armadillo library inside a package (LAMMPS package). I also used Armadillo to compile different codes, and it works fines, and I use the following compiling command:

g++ example2.cpp -o example2 -O3 -larmadillo -DARMA_DONT_USE_WRAPPER -lblas -llapack

Armadillo works fine for matrix storage and loading inside the package, however, when it comes to matrix-vector multiplication, it gives me the following error:

/usr/include/armadillo_bits/wrapper_blas.hpp:42: undefined reference to `dgemv_'

Any suggestion on how to go around it?

来源:https://stackoverflow.com/questions/61999416/armadillo-blas-lapack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!