From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Osman Zakir via Boost-users
Sent: 06 January 2019 16:33
To: boost-users@lists.boost.org
Cc: Osman Zakir
Subject: Re: [Boost-users] I ran b2 with the -d+2 command and redirected the output to a file

 

I managed to build it with MSVC.  But none of the <cxxflags> arguments worked so I had to them all out of the configuration file.  

 

I think that this is partly because you are using Microsoft compiler options

 

https://docs.microsoft.com/en-us/cpp/build/reference/compiler-options?view=vs-2017

 

with Clang compiler

 

https://clang.llvm.org/docs/UsersManual.html#command-line-options

 

but also because the way of negating using b2/bjam is different, for example

 

-<toolset>msvc:<define>_DEBUG # Undefine DEBUG.

 

so to switch off permissive you should use

 

-<cxxflags>/permissive

 

and probably not

 

<cxxflags>/permissive-

 

But get it working before you try to enforce standards?

 

Sorry - I should have spotted this before.

 

Paul

 

 

---

Paul A. Bristow

Prizet Farmhouse

Kendal UK LA8 8AB

+44 (0) 1539 561830