Xcode-select -install # installs additional headers that you might be mimssing.Įcho 'export PATH="/usr/local/opt/llvm/bin:$PATH"' > ~/.bash_profile # exports the custom llvm path into the shell #!/bin/bashīrew install -with-toolchain llvm # llvm but with all the headers I have a shell script that I use at work to get this set up properly. Then you can compile by setting your cmake compiler flags to be your custom brew version and then running that.Īfter installing llvm you will need to link your llvm path into your current shell. However hope is not lost! You can download the newest version of clang from the brew package manager. Looking at your screenshot you will see the standard library support goes up to C++11, and Apple has not yet shipped a version of clang that has stdlib support for either C++14 or C++17. The compiler shipped with Xcode supports C++17 language features but not C++17 standard library features. What am I doing wrong, it looks to me that my compiler should support c++17?Īs per Owen Morgan's answer I've installed clang (actual install command was brew install llvm) but it now complains about absence of string.h. Nevertheless this is what I get as an output from my IDEs: However I'm unable to compile even minimal example on my machine: #include įor (auto & p : fs::directory_iterator(path))
0 Comments
Leave a Reply. |