Boost logo

Boost :

Subject: Re: [boost] clang-win, again
From: Peter Dimov (lists_at_[hidden])
Date: 2018-08-12 01:12:13


Edward Diener wrote:
> On 8/11/2018 6:22 PM, Peter Dimov via Boost wrote:
> > Has anyone succeeded in getting clang-cl.exe working under b2? I've
> > installed llvm-6.0.1, added it to PATH, put
> >
> > using clang-win : : : <compatibility>vc14 ;
>
> I use this:
>
> using clang : 6.0cl : C:/Utilities/LLVM/601/x32/bin/clang++
> :
> <cxxflags>-fmacro-backtrace-limit=0
> <cxxflags>-Wno-invalid-token-paste
> <compileflags>-fmsc-version=1900
> <compileflags>--target=i686-pc-windows-msvc
> <linkflags>--target=i686-pc-windows-msvc
> <linkflags>-fuse-ld=lld
> ;

This kind of works, even without the options, using just the simple

    using clang ;

and without setting up any MSVC build environment. clang++ finds MSVC 2017
on its own.

But unfortunately any dynamic_cast use fails with

    undefined symbol: __imp___RTDynamicCast

regardless of whether I use -fuse-ld=lld. :-/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk