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. :-/