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 |
---|---|---|---|
Mongodb Getting Core Dumped | 1 | 267 | Jun 2024 |
We have a 3-node MongoDB replica set cluster deployed via Ops Manager with TLS enabled. Our Node.js application can only connect when the first node is the primary. When the primary node switches to another node, the application fails to connect. | 0 | 205 | Jul 2024 |
Mocking mongo-go-driver v2 | 1 | 140 | Feb 10 |
How to get mongo snapshot details from mongo ops mgr api | 1 | 28 | Feb 24 |
MongoDB connection timeout with Databricks | 0 | 35 | Mar 4 |