问题
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