[CXX-2099] 3.6.0, missing <string> includes, OSX/Clang Created: 29/Aug/20  Updated: 02/Sep/20  Resolved: 02/Sep/20

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: 3.6.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Allan Bazinet Assignee: Clyde Bazile III (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OSX 10.15.6, XCode 11.6 (clang 11.0.3)


Issue Links:
Problem/Incident
is caused by CXX-2102 Remove unused and add missing includes Closed

 Description   

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.



 Comments   
Comment by Clyde Bazile III (Inactive) [ 02/Sep/20 ]

alb@neptunesystems.com Thanks for raising this issue. I created CXX-2102 to address this problem and prevent similar issues. It looks like you have a work around for now. So I'll be closing this issue. Feel free to re-open this ticket if you have any other concerns.

Generated at Wed Feb 07 22:04:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.