Clang(LLVM) compile with frameworks

This has been already answered in the Apple developer forum, you can find the whole discussion in here. In the answer marked as the solution to the question they say: 1 – check your PATH variable first: $ echo $PATH 2 – assuming /System/Library/Frameworks is not included in PATH, add it: $ PATH=$PATH:/System/Library/Frameworks 3 -now … Read more

Is OpenMP available in High Sierra LLVM?

Standard Apple’s clang supports OpenMP. They just disabled the driver option. But you can use the frontend option instead this way: clang -Xclang -fopenmp <you_program> -I <path to omp.h> -L <path to libomp.dylib> -lomp Also, you need to set DYLD_LIBRARY_PATH environmental variable: export DYLD_LIBRARY_PATH=<path to libomp.dylib> How to get/build libomp. $ cd $ svn co … Read more

Clang doesn’t see basic headers

This is because g++ is not installed, so libstdc++ is not present. You can install g++, or if LLVM is preferred, install LLVM libc++ and specify that you want to use it, like so: sudo apt-get install libc++-dev clang++ -stdlib=libc++ <rest of arguments> You may wish to link /usr/bin/c++ to the default compiler: ln -s … Read more