compile boost and boost application with CLANG compiler

Has anyone successfully compiled boost and application with boost with CLANG compiler?If yes, would you mind sharing the steps?

Sure, follow the Boost compilation docs and set your toolset to clang. Here's an example invocation that should get you started: ./bootstrap.sh --with-toolset=clang --prefix=${where} ./b2 -j $(nproc) toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" ./b2 install --prefix=${where} You may want to remove the libc++ flags if you want to build against libstdc++ instead. On 08/23/2016 08:06 PM, David Frank wrote:
Has anyone successfully compiled boost and application with boost with CLANG compiler? If yes, would you mind sharing the steps?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Daniel Hofmann
-
David Frank