C++11 headers missing in /usr/include
C++11 headers missing in /usr/include
- Subject: C++11 headers missing in /usr/include
- From: Matthew LeRoy <email@hidden>
- Date: Fri, 20 Jan 2017 16:54:00 +0000
- Thread-topic: C++11 headers missing in /usr/include
Hello,
I’m having a hard time figuring out how to get the C++ standard library headers that are new in C++11 (e.g. <codecvt>) to be installed under /usr/include.
I’m running macOS 10.12.2 with Xcode 8.2 (8C38). At first I didn’t have a /usr/include folder at all; then I installed the Command Line Tools via `xcode-select --install`, and /usr/include now exists and contains what appear to be most of the C and C++ standard library headers. However, the headers that are new to C++11 are not present.
I do note that the C++ headers are located in /usr/include/c++/4.2.1/, which seems to be the path that was used for the old libstdc++ headers. In my searching online I’ve seen references to a different path, /usr/include/c++/v1/, that sounds like it might be the path used when the newer libc++ headers are installed. But, I’ve been unable to find any instructions on how to get the Command Line Tools to install those headers rather than the old libstdc++ ones.
So, is there a way to get the newer libc++ headers (specifically, including the headers that are new in C++11) installed under /usr/include, or am I searching for a unicorn here?
FWIW, the reason I’m asking is that I’m trying to set up the include paths for a Visual Studio Code workspace using the C/C++ extension. The project uses C++11 headers, and VSCode can’t find things like `#include <codecvt>`. I’d rather not add an include path to the SDK directory inside the Xcode.app bundle, since that’s very specific to Mac/Xcode development; I’d much rather the headers be installed to the standard /usr/include location.
Thanks in advance!
Matt LeRoy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden