Skip to main content
I can build on VS 2022 with these commands in Powershell (Note: Boost is not needed since VS 2022 supports C++17):
cmake -B cmake-build -S . -DCMAKE_CXX_STANDARD=17 -G "Visual Studio 17 2022" -A "x64" -DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-driver
cmake --build cmake-build --target INSTALL
I expect the issue is caused by the C:\msys64
headers being included. I do not expect Visual Studio builds to work with headers from msys2. I suggest checking the output of the cmake .. -G "Visual Studio 17 2022"
to see if anything suggests why the msys2 headers are being found.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
WiredTiger logs under journal folder growing on Arbiter server and not getting removed | 0 | 311 | Jun 2024 |
Full text search mongdb 8 community edition | 3 | 325 | Oct 2024 |
High Memory Usage on MongoDB Secondary Server Not Matching Cache + Free Heap | Mongo v7.0.14 | 1 | 46 | Dec 2024 |
System.ArgumentException: The source argument must be a MongoDB IQueryable when trying to use EF Core-style DI with MongoDB | 1 | 148 | Dec 2024 |
Mongo DB Community 8.0.4 keeps crashing / Time Series on Mac | 1 | 86 | Jan 7 |