title: Is C++ compilable with OpenMP and boost on MacOS?
body: <p>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.</p>
  
  <p>The question is: Is there any possibility to compile C++ on MacOS High Sierra with OpenMP and boost?</p>
  
  <p>Some findings (correct me if I am wrong):</p>
  
  <ul>
  <li>OpenMP is supported by Clang BUT not by the standard MacOS-clang compiler delivered with MacOS which is ALSO the only compiler XCode9 supports</li>
  <li>g++ supports OpenMP</li>
  <li>If I install Boost via homebrew, then it will use the clang compiler (which cannot be changed easily), so that libc++ will be used</li>
  <li>g++ uses libstdc++ by default which is not easy to change</li>
  </ul>
  
  <p>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++.</p>
  
  <p>Is there any chance to get both OpenMP and and boost running?</p>
  
  <p>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).</p>