简体   繁体   中英

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

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?

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 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM