Re: C++11 headers missing in /usr/include
Re: C++11 headers missing in /usr/include
- Subject: Re: C++11 headers missing in /usr/include
- From: Jens Alfke <email@hidden>
- Date: Fri, 20 Jan 2017 15:00:44 -0800
On Jan 20, 2017, at 12:24 PM, Matthew LeRoy < email@hidden> wrote:
So, am I doing something wrong? Does it seem odd that the Command Line Tools are installing the old libstdc++ headers and not the libc++ headers?
As others have said, don’t assume it’s a law of nature that headers have to be located in /usr/include. They don’t have to be there, and on Mac they usually aren't. I don’t even have a /usr/include directory on my system, and I do tons of development (command-line as well as Xcode) on it.
What you need to do is find where Clang is looking for header files. You can do that by opening a header in Xcode and then Command-clicking its filename in the top navigator strip to get a drop-down menu of the hierarchy, then selecting the enclosing directory. On my system the path is /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 Don’t be surprised that it’s inside Xcode; all the developer tools (including clang itself) are inside Xcode. /usr/bin/clang is just a tiny stub that finds and launches the real copy.
—Jens |
_______________________________________________
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