简体   繁体   English

在Microsoft Visual Studio 2015的C ++项目中包含Armadillo C ++库

[英]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. 我正在尝试将Armadillo C ++库(一个线性代数库)包含在我正在研究的C ++项目中,但是我很难确定该怎么做。 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/ ). 我通常不熟悉如何向项目中添加库,因此我一直在寻找具有逐步说明的资源,而我能找到的最好的资源对我不起作用( 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. 我遵循了网页上的所有说明,当我在代码中放入#include <armadillo>using namespace arma时,Visual Studio仍然抱怨。 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 我已经将所有.lib和.dll文件放在一个目录中,该目录已添加到PATH系统环境变量中

在此处输入图片说明

and then you just have to add the correct include and library directories in VS2015 然后您只需要在VS2015中添加正确的包含和库目录 在此处输入图片说明

and add the lib dependencies you have 并添加您拥有的lib依赖项 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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