I am trying to write a code using Google's OR-Tools library on Microsoft Visual Studio 2019. I followed the following steps:
- Installed OR-Tools from Binary on Windows on their website.
- Extracted the .zip file in C:\Libraries
- Wrote my code on VS (I wrote #include <ortools/linear_solver/linear_solver.h> and using namespace operations_research; rest is usual C++ Code)
- In Visual Studio, went to Project > Properties > C/C++ > Additional Include Directories
- Added "C:\Libraries\or-tools\include" (which contains the folder "ortools" that I included)
- Clicked Apply then OK then compiled my code.
I am getting a bunch of linking errors "error LINK2019". Is there anything else I should do so I can use this library freely on my machine?