Armadillo + BLAS + LAPACK: Linking error?

后端 未结 3 1368
醉话见心
醉话见心 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:48

    There's an oddity I just discovered by comparing previously working compilations of code with the very problem of this thread, stressing the involvement of the gnu cc (I'm no expert in this): on my machine compilation success depends on the order of parameters to the gcc/g++ where g++ infile -o outfile -libarmadillo ... worked, but g++ -libarmadillo infile -o outfile ... didnt with (almost) the same error as mentioned above. (hope that helps).

提交回复
热议问题