Search code examples
c++visual-studiorestbed

Link Error in Visual Studio 2017 with restbed


I followed resthub github for building the library

mkdir build && cd build
cmake -DBUILD_SSL=OFF -DBUILD_EXAMPLES=ON -G "Visual Studio 15 2017" ..
msbuild INSTALL.vcxproj

It successfully created distibution folder. I added those in my sample restbed project as shown below enter image description here

enter image description here

But I am getting the link error as shown below when buildingi What am I doing wrong?


Solution

  • There are three steps to add a lib:

    Properties->C/C++->General->Additional Include Directories

    Properties->Linker->General->Additional Library Directories

    Properties->Linker->Input->Additional Dependencies

    Also, you could refer to this link about lnk2019.