Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1900

C++ Driver on releases/stable fails to compile with Visual Studio 2019

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Environment:

      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

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            note8g2018@gmail.com Shogair Shogair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: