[CXX-1900] C++ Driver on releases/stable fails to compile with Visual Studio 2019 Created: 22/Dec/19 Updated: 15/Jul/20 Resolved: 27/Dec/19 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Shogair Shogair | Assignee: | Kevin Albertson |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: Windows 10 Enterprise (Version 1909, OS build 18363.535) |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I got 2 Error: 1/ Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed 2/ Looking for C++ include pthread.h - not found **************************************************************** here my Cmake result and when I tried to build it by VS, it failed.
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363. The CXX compiler identification is MSVC 19.24.28314.0 Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe – works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done No build type selected, default is Release The C compiler identification is MSVC 19.24.28314.0 Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe – works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Auto-configuring bsoncxx to use boost std library polyfills since C++17 is inactive and compiler is MSVC Found Boost: C:/boost (found suitable version "1.72.0", minimum required is "1.56.0") Performing Test COMPILER_HAS_DEPRECATED_ATTR Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed Looking for C++ include pthread.h Looking for C++ include pthread.h - not found Found Threads: TRUE Configuring done |
| Comments |
| Comment by Kevin Albertson [ 27/Dec/19 ] |
|
Happy to help! |
| Comment by Shogair Shogair [ 26/Dec/19 ] |
|
Hi kevin.albertson , Ok now It works in the CXX 1901, Thanks |
| Comment by Shogair Shogair [ 23/Dec/19 ] |
|
Hi kevin.albertson , but when I try to build it, I got 2 successful and 14 failed. and when I try to install it, it failed completely. |
| Comment by Kevin Albertson [ 23/Dec/19 ] |
|
Hi note8g2018@gmail.com! I do not believe those are errors. cmake is a bit verbose sometimes, but those messages are results of cmake testing what is available in the environment, but configuration appears to complete, as "Configuring done" is printed at the end. |