• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++11 headers missing in /usr/include
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: C++11 headers missing in /usr/include
      • From: Matthew LeRoy <email@hidden>
    • Re: C++11 headers missing in /usr/include
      • From: Doug Hill <email@hidden>
References: 
 >Re: C++11 headers missing in /usr/include (From: Matthew LeRoy <email@hidden>)
 >Re: C++11 headers missing in /usr/include (From: Rich Siegel <email@hidden>)
 >Re: C++11 headers missing in /usr/include (From: Matthew LeRoy <email@hidden>)

  • Prev by Date: Re: C++11 headers missing in /usr/include
  • Next by Date: CTRL-left/right doesn't work in LLDB console
  • Previous by thread: Re: C++11 headers missing in /usr/include
  • Next by thread: Re: C++11 headers missing in /usr/include
  • Index(es):
    • Date
    • Thread