Boost logo

Boost :

Subject: Re: [boost] Clang 4.0.0 MPL error in Boost next.hpp and prior.hpp
From: Peter Dimov (lists_at_[hidden])
Date: 2017-03-26 12:11:21

> The failure is because you pass -std=c++0x, but MS's headers indirectly
> included by config_info use C++14 features. Should work with -std=c++14.

Actually no, it was because I needed to set _MSC_VER
using -fmsc-version=1910.

using clang : 4.0 :
  "C:/LLVM/bin/clang.exe" :
  <compileflags>-fmsc-version=1910 <linkflags>-v ;

And now it fails to link with the usual mysterious
clang version 4.0.0 (tags/RELEASE_400/final)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\LLVM\bin
 -defaultlib:libcmt -nologo -debug --start-group
4.0\\debug\\config_info.obj" -Bstatic -Bdynamic --end-group
clang.exe: error: unable to execute command: program not executable
clang.exe: error: linker command failed with exit code 1 (use -v to see

about which problem I can't find anything sensible.

> Not sure why you'd want to use clang-win at present; I use clang-linux for
> everything.

So here's why, I suppose.

Either way, I can't link, but at least the PP lib works (once the __GNUC__
checks are removed).

Boost list run by bdawes at, gregod at, cpdaniel at, john at