Boost logo

Boost :

Subject: Re: [boost] Clang 4.0.0 MPL error in Boost next.hpp and prior.hpp
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2017-03-25 10:01:33


> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Dimov via Boost
> Sent: 24 March 2017 18:37
> To: boost_at_[hidden]
> Cc: Peter Dimov
> Subject: Re: [boost] Clang 4.0.0 MPL error in Boost next.hpp and prior.hpp
>
> Paul A. Bristow wrote:
> > I am trying to check code that works on VS2015 update 3 and GCC 6.3.0
> > using Clang 4.0.0
> ...
> > Following suggestions in this thread, I have
> > added -Wno-invalid-token-paste
> > http://clang-developers.42468.n3.nabble.com/invalid-token-paste-td4025526.html
>
> You could try disabling Clang's MS mode with -fno-ms-compatibility and see
> if that helps.

With adding <cxxflags>-fno-ms-compatibility to user_config.jam and a command line

modular-boost\libs\hello_boost\example>b2 toolset=clang-4.0.0 -a -d2 --debug-configuration > clang40_25Mar17.log

  "c:\LLVM\bin\clang++.exe" -c -x c++ -v -fno-ms-compatibility -O0 -g -fno-inline -Wall -g -m64 -DBOOST_ALL_NO_LIB=1 -I"..\..\.."
-o "..\..\..\bin.v2\libs\hello_boost\example\hello_boost.test\clang-linux-4.0.0\debug\hello_boost.obj" "hello_boost.cpp"

I still get

In file included from ..\..\..\boost/config.hpp:44:
..\..\..\boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
# include <cstddef>

But I note that the line above mentions to object file location is

clang-linux-4.0.0\debug\hello_boost.obj

but default target x86_64-pc-windows-msvc

should I expect Clang-msvc here?

Do I do this using a different 'triple' and/or target and if so what?

compileflags>"-target x86_64-pc-windows-gnu" or ?

Thanks

Paul

---
Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830

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