user6771484
user6771484

Reputation: 81

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

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,

Upvotes: 1

Views: 5970

Answers (2)

banana36
banana36

Reputation: 435

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.

Upvotes: 1

Gabriel
Gabriel

Reputation: 3594

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

Upvotes: 4

Related Questions