Boost logo

Boost Users :

Subject: Re: [Boost-users] compile boost and boost application with CLANG compiler
From: Daniel Hofmann (daniel_at_[hidden])
Date: 2016-08-23 14:16:36


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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net