如何在Visual Studio 2015中添加库,头文件 [英] How to add a library, header file in Visual studio 2015

查看:111
本文介绍了如何在Visual Studio 2015中添加库,头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio的新手.有一个名为 Eigen 的开源线性求解器.我目前已根据不需要使用Cmake或install或任何文件的文档下载了包含所有头文件的zip文件.我只需要确保编译器可以访问Eigen头文件.如果我使用gcc但使用的是Visual Studio 2015,则文档为我提供了执行此操作的不同方法.我已提取了zip文件,并且知道了计划使用的头文件的位置,但在Visual Studio上却遇到了麻烦工作室.任何帮助表示赞赏.

I am fairly new to Visual Studio. There is this open source linear solver called Eigen. I have currently downloaded the zip file containing all the header file according to the documentation I don't need to use Cmake or install or anything. I just need to make sure that the compiler has access to the Eigen header files. The documentation gives me different ways of doing this if I use gcc but I am using Visual Studio 2015. I have extracted the zip file and I know the location of the header file that I plan to use but I am having trouble doing that on Visual Studio. Any help is appreciated.

谢谢

推荐答案

  • 右键单击要修改的项目
  • 选择VC ++目录
  • 然后修改包含目录并更新它
  • 这篇关于如何在Visual Studio 2015中添加库,头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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