How to add a library, header file in Visual studio 2015

久未见 提交于 2021-01-28 12:46:41

问题


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.

Thanks,


回答1:


  • Right click on the project you want to modify
  • Choose VC++ directories
  • Then Modify the include directories and update it



回答2:


Actually it's better to add that to C/C++ -> Include Directories, the difference is described here, you can also use the screenshots from there.



来源:https://stackoverflow.com/questions/45379985/how-to-add-a-library-header-file-in-visual-studio-2015

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