Including Armadillo C++ library in a C++ project i

2019-02-21 02:32发布

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条回答
Summer. ? 凉城
2楼-- · 2019-02-21 03:09

I have put all the .lib and .dll files in a directory which is added to the PATH system environment variable

enter image description here

and then you just have to add the correct include and library directories in VS2015 enter image description here

and add the lib dependencies you have enter image description here

查看更多
登录 后发表回答