Using Armadillo library; Linking Error with BLAS and LAPACK

风格不统一 提交于 2019-12-01 11:33:58

问题


I am trying to compile and run the sample in example2.cpp from Armadillo, using the pre-compiled blas and lapack dll files provided. This is what I didin Visual C++ 2013:

1) I set up a new and empty win32 console application project;

2) Add a new and empty cpp file called test.cpp.

3) I copyed the content of example2.cpp into this test.cpp file.

4) In the project properties->C/C++->Additional Include Directories, I added the path of the "include" folder from the Armadillo library.

5) In project properties->linker->General->Additional Library Directories, I added the path of the folder in which the pre-compiled blas and lapack dlls are lacating (the corresponding lib files are in the same folder);

6) In project properties->linker->Input->Additional Dependencies, I added the lib files for the pre-compiled blas and lapack dlls, i.e. blas_win64_MT.lib and lapack_win64_MT.lib.

Then I compile the whole project, and still got a lot of LNK2019 error, indicating there are unresolved symbols when referring to blas and lapack routines.

Can someone help me to figure out what is going on here?

来源:https://stackoverflow.com/questions/22232219/using-armadillo-library-linking-error-with-blas-and-lapack

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