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

3.6.0, missing <string> includes, OSX/Clang

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.0
    • Component/s: Build
    • None
    • Environment:
      OSX 10.15.6, XCode 11.6 (clang 11.0.3)

      During compilation on OSX 10.15.6, using XCode 11.6 (clang 11.0.3), the build fails on options/auto_encryption.cpp and options/client_encryption.cpp, with the usual template vomit specific to a missing <string> header.

      Relevant flags in use are:

      CC=clang

      CXX=clang++

      CXXFLAGS="-std=c+17 -stdlib=libc+"

      -DBSONCXX_POLY_USE_STD=1

      -DCMAKE_CXX_STANDARD=17

      Adding an include for <string> to options/auto_encryption.hpp and options/client_encryption.hpp allows the build to proceed. Probably not the optimal solution, but it worked for us.

            Assignee:
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Reporter:
            alb@neptunesystems.com Allan Bazinet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: