I have a REST API in ASP.Net Core, and am trying to use libcpr to build a REST client in C++ so I can invoke HTTP requests to my API. (Iam fairly new to C++).
I created a simple console application in C++, installed the package libcpr and added the following basic code to test a simple GET request.
Building the solution gives me multiple compilation issues (in the external dependencies files associated with libcpr), as shown in the screenshot attached.
Have I missed including anything? Please help.
Example/How to Reproduce
Create a console application in C++ (Visual Studio 2019).
Install the package libcpr from Nuget Package Manager.
Add some basic code for a GET request. (as specified in the documentation).
Build the project/solution.
Compilation fails with multiple errors. (screenshot attached).
Description
I have a REST API in ASP.Net Core, and am trying to use libcpr to build a REST client in C++ so I can invoke HTTP requests to my API. (Iam fairly new to C++). I created a simple console application in C++, installed the package libcpr and added the following basic code to test a simple GET request.
include
include <cpr/cpr.h>
int main() { cpr::Response r = cpr::Get(cpr::Url{ "https://localhost:44310/api/Item" });
}
Building the solution gives me multiple compilation issues (in the external dependencies files associated with libcpr), as shown in the screenshot attached.
Have I missed including anything? Please help.
Example/How to Reproduce
Possible Fix
No response
Where did you get it from?
GitHub
Additional Context/Your Environment