Closed hcort closed 4 years ago
Hello @hcort ,
The oatpp version 1.0.0
is outdated and there were some breaking changes introduced since 1.1.0
.
Also, at the moment, it's recommended to install oatpp from the source.
Please find this page - https://oatpp.io/docs/installation/windows/ - info on how-to install oatpp on Windows from the source (for oatpp-curl the same set of commands applies).
Once installed there should be no problems of generating a solution or to just open "cmake" in the visual-studio.
The only problem you'll find is the oatpp-curl module which depends on pkg-config
to find libcurl
. If you manage to overcome this obstacle, everything else should go smoothly.
Regards, Leonid
Hi @lganzzzo
I managed to build from source both libraries, oatcpp and oatcpp-curl but I'm getting the same linker errors.
Hello @hcort ,
Please tell me more:
I need to reproduce it.
Regards, Leonid
Hi @lganzzzo
I fixed it. There was a missing path in the "Library directories" project configuration.
Now the example runs fine.
Hey,
Thanks for the info!
Please let me know if you have more questions!
Regards, Leonid
I'm having some trouble running this example on Windows.
I installed oatcpp and oatcpp-curl using vcpkg and ran CMake on this example-api-client:
After pointing the Visual Studio project to the path of the libraries (in my case C:\dev\vcpkg\installed\x86-windows\lib\oatpp-1.0.0) and the includes (C:/dev/vcpkg/installed/x86-windows/include/oatpp-1.0.0/) I still get the following linker errors: