Armadillo + BLAS + LAPACK: Linking error?

后端 未结 3 1361
醉话见心
醉话见心 2020-12-17 00:45

When I try to compile example1.cpp that comes with Armadillo 2.4.2, I keep getting the following linking error:

/tmp/ccbnLbA0.o: In function `double arma::bl         


        
3条回答
  •  春和景丽
    2020-12-17 01:49

    As of 5.0.0 (might also apply to earlier versions)

    You actually need -larmadillo, on Fedora 21 -llapack and -lopenblas are not excplicitly necessary anymore.

提交回复
热议问题