[llvm-dev] Build on macOS Catalina
Luca Ciciriello via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 18 09:35:00 PST 2020
Hi all.
I’ve built and installed llvm+clang from git repository on macOS Catalina. My problem now is that I get the following error building my cpp file:
clang++ -std=c++17 testcpp.cpp -o test
In file included from testcpp.cpp:1:
In file included from /usr/local/clang_llvm/bin/../include/c++/v1/iostream:37:
In file included from /usr/local/clang_llvm/bin/../include/c++/v1/ios:214:
In file included from /usr/local/clang_llvm/bin/../include/c++/v1/iosfwd:95:
/usr/local/clang_llvm/bin/../include/c++/v1/wchar.h:118:15: fatal error: 'wchar.h' file not found
#include_next <wchar.h>
^~~~~~~~~
1 error generated.
I get this error only on macOS and not on Linux. I’ve followed the same procedure on Linux and MacOS
On macOS I’ve created the links:
ln -s /usr/local/clang_llvm/include/c++ /usr/local/include/c++
but this doesn’t solve the problem. Any idea?
Best regards
Luca Ciciriello
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200218/cc34088f/attachment.html>
More information about the llvm-dev
mailing list