Including Armadillo C++ library in a C++ project in Microsoft Visual Studio 2015

扶醉桌前 提交于 2019-12-08 11:15:26

问题


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

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