Reputation:
I am new to CPP and I find the lack of proper package management quite cumbersome how can I use the library cpr with vcpkg?
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install cpr
I have done these steps and still I can't use cpr library in my code. What else do I have to do?
Upvotes: 2
Views: 5377
Reputation: 655
Close Visual Studio IDE. Use correct triplets. Confirm if your project need a static or dynamic linking or if it is 32 bit or 64 bit. Wrong project settings may lead to unwonted results. Assuming you selected 64bits in your project settings, issue the following command under Windows PowerShell. integrate install
command should be issued after installation.
cd vcpkg
./vcpkg install cpr:x64-windows
./vcpkg integrate install
Upvotes: 1