[cfe-dev] [llvm-dev] clang++ build from source is not able to find C++ headers
Sean Silva via cfe-dev
cfe-dev at lists.llvm.org
Wed Jul 6 14:48:55 PDT 2016
Thanks for the info.
On Wed, Jul 6, 2016 at 2:24 PM, Tim Northover <t.p.northover at gmail.com>
wrote:
> On 6 July 2016 at 14:17, Sean Silva via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > This gives an error for me. Any ideas?
> >
> > ```
> > Sean:~/pg/llvm % ~/pg/release/bin/clang++ -v -isysroot `xcrun
> > --show-sdk-path` -fsyntax-only test.cpp
> > [...]
> > test.cpp:1:10: fatal error: 'iostream' file not found
> > #include <iostream>
>
> Clang expects libc++ headers to be in /path/to/clang/../include/c++ on
> OS X because they're provided with the toolchain rather than the SDK.
> Either symlink them there, or build Clang with libc++ (I tend to
> symlink).
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160706/55aadb5e/attachment.html>
More information about the cfe-dev
mailing list