在Microsoft Visual Studio 2015的C ++项目中包含Armadillo C ++库 [英] Including Armadillo C++ library in a C++ project in Microsoft Visual Studio 2015

查看:148
本文介绍了在Microsoft Visual Studio 2015的C ++项目中包含Armadillo C ++库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Armadillo C ++库(一个线性代数库)包含在我正在研究的C ++项目中,但是我很难确定该怎么做.我通常不熟悉如何向项目中添加库,因此我一直在寻找具有逐步说明的资源,而我所能找到的最好的资源却对我不起作用(

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?

推荐答案

我已将所有.lib和.dll文件放在一个目录中,该目录已添加到PATH系统环境变量中

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

然后您只需要在VS2015中添加正确的包含和库目录

and then you just have to add the correct include and library directories in VS2015

并添加您拥有的lib依赖项

and add the lib dependencies you have

这篇关于在Microsoft Visual Studio 2015的C ++项目中包含Armadillo C ++库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆