<div dir="ltr">Hmmm. I have the same issue as this gentleman: <a href="https://forums.developer.apple.com/thread/71209">https://forums.developer.apple.com/thread/71209</a>. I do have Xcode CLI tools installed, but it has installed an older version of libc++ in my /usr/include. The installed directory is /usr/include/c++/4.2.1 (I think this is either C++03 or C++98), but my libtool expects /usr/include/c++/v1. So is this actually an unresolved issue with Xcode?<div><br></div><div>Scott</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 26, 2017 at 4:27 PM, Jacob Carlborg via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2017-06-26 21:37, scott constable via cfe-dev wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Sorry, I should have clarified. The C/C++ headers are the ones which<br>
cannot be found. For clarity, here's the output of my tool with the -v<br>
flag (I've hidden some sensitive names with ***):<br>
<br>
clang version 4.0.0 (tags/RELEASE_400/final)<br></span><span class="">
ignoring nonexistent directory "/***/build-debug/bin/../inclu<wbr>de/c++/v1"<br>
ignoring nonexistent directory "/usr/include/c++/v1"<br>
ignoring nonexistent directory<br>
"***/build-debug/bin/../lib/cl<wbr>ang/4.0.0/include"<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
  /usr/local/include<br>
  /usr/include<br>
  /System/Library/Frameworks (framework directory)<br>
  /Library/Frameworks (framework directory)<br>
End of search list.<br>
<br>
Both my Xcode clang and my homebrew-installed clang find the headers<br>
through the relative path "../include/c++/v1". This won't be possible<br>
with my libtool unless (a) I move my libtool into the directory where<br>
clang is installed, or (b) I also distribute the C/C++ headers with my<br>
libtool. Both of these solutions is ugly, so I would prefer something nicer.<br>
</span></blockquote>
<br>
If only Xcode is installed the headers are available at:<br>
<br>
/Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/bin/../<wbr>lib/clang/8.1.0/include<br>
<br>
/Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/include<br>
<br>
This can be verified by running "clang -E  - -v < /dev/null". You'll see the above two paths (or something similar depending on which version of Xcode) are two of the paths Clang will search in.<br>
<br>
If the command line tools are installed as well, the headers will be available in "/usr/include" as well. As you can see with the above command, "/usr/include" is one of the paths Clang will search in.<br>
<br>
As can be seen in the output from your tool, the paths in /Applications/Xcode.app are not searched in. Since it doesn't find the headers I suspect you don't have the command line tools installed.<br>
<br>
Note that even though you can invoke "clang" on the command line to compile code, it doesn't necessarily mean that the command line tools are installed. You can install the command line tools by running "xcode-select --instal". If they're already installed, you'll get a message.<br>
<br>
All this trouble with these paths are due to, I believe, Apple wants the Xcode app bundle to be completely self contained and not install anything outside of it unless the user explicitly asks for it. I'm guessing this it to be compatible with the App Store.<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
/Jacob Carlborg<br>
<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>