I have no issues with CrowCpp on Windows, using the x64-windows triplet and a fresh clone of vcpkg and a fresh install of the crow port. Here is what I did; perhaps it might help.
Ensure you have Visual Studio 2022 with the Desktop Development with C++ workload installed. Or, get the Build Tools for Visual Studio 2022 and also install a similar workload.
5
u/delta_p_delta_x Mar 09 '23 edited Mar 09 '23
I have no issues with CrowCpp on Windows, using the
x64-windowstriplet and a fresh clone ofvcpkgand a fresh install of thecrowport. Here is what I did; perhaps it might help.Ensure you have Visual Studio 2022 with the
Desktop Development with C++workload installed. Or, get the Build Tools for Visual Studio 2022 and also install a similar workload.Open the
Developer PowerShell for VS 2022.Navigate to some new empty directory, e.g.:
Issue the following commands:
This should automatically pull in Crow and its dependencies, and build it all for you.
Create
CMakeLists.txtin this directory (ni CMakeLists.txt) with the following content:Create
CMakePresets.jsonin this directory (ni CMakePresets.json) with the following content:Create
main.cppin this directory (ni main.cpp) with the following content:Issue the following commands:
Fire up a new PowerShell instance to test, and issue the following: