问题
I'm trying to include the Armadillo C++ library, a linear algebra library, in a C++ project I'm working on, and I'm having a difficult time figuring out how to do so. I'm unfamiliar with how to add libraries to a project in general, so I've been searching for a resource that has step by step instructions, and the best one I could find didn't work for me (http://codeyarns.com/2013/11/15/how-to-use-armadillo-on-windows/). I followed all the instructions on the web page, and Visual Studio still complains when I put #include <armadillo>
and using namespace arma
in my code. Does anyone have any idea what I'm doing wrong?
回答1:
I have put all the .lib and .dll files in a directory which is added to the PATH system environment variable
and then you just have to add the correct include and library directories in VS2015
and add the lib dependencies you have
来源:https://stackoverflow.com/questions/32960175/including-armadillo-c-library-in-a-c-project-in-microsoft-visual-studio-2015