I have tried many things now and have come to some conclusions. Maybe, I oversee something but it seems that I cannot accomplish what I desire.
The question is: Is there any possibility to compile C++ on MacOS High Sierra with OpenMP and boost?
Some findings (correct me if I am wrong):
- OpenMP is supported by Clang BUT not by the standard MacOS-clang compiler delivered with MacOS which is ALSO the only compiler XCode9 supports
- g++ supports OpenMP
- If I install Boost via homebrew, then it will use the clang compiler (which cannot be changed easily), so that libc++ will be used
- g++ uses libstdc++ by default which is not easy to change
As a consequence, it seems that I cannot have both... OpenMP is only supported if I use gcc. But gcc uses libstdc++ instead of libc++, so that I get linker errors if I try to link against boost installed via homebrew with libc++.
Is there any chance to get both OpenMP and and boost running?
PS: Please don't link to some >1 year old threads, XCode8 is another story (earlier XCode versions support different compilers) and clang-omp would be another story (it is no longer supported).