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 |
---|---|---|---|
please some one help me with mongodb community server installation on parrot os | 0 | 444 | Jun 2024 |
mongodb lot of movechunk after major update | 0 | 19 | Nov 2024 |
High Memory Usage on MongoDB Secondary Server Not Matching Cache + Free Heap | Mongo v7.0.14 | 1 | 46 | Dec 2024 |
The most used authentication type for DB connection | 0 | 20 | Dec 2024 |
Mocking mongo-go-driver v2 | 1 | 140 | Feb 10 |