问题
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