Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-05-17 02:24:36


on Wed May 16 2007, Yuval Ronen <ronen_yuval-AT-yahoo.com> wrote:

> David Abrahams wrote:
>> on Wed May 16 2007, Yuval Ronen <ronen_yuval-AT-yahoo.com> wrote:
>>
>>> Yuval Ronen wrote:
>>>> Vladimir Prus wrote:
>>>>> Yuval Ronen wrote:
>>>>>
>>>>>> Can I pass a command line argument of some sort to tell Boost.Build V2
>>>>>> to disable some specific MSVC warnings?
>>>>> bjam cxxflags=<whatever-MSVC-option-you-want>
>>>>>
>>>>> should work.
>>>> It doesn't. I tried
>>>>
>>>> bjam --toolset=msvc-8.0 cxxflags=/wd4251
>>>>
>>>> but bjam spits errors about invalid arguments
>>
>> What are the *exact* error messages?
>
> The exact command line was
>
> bjam --toolset=msvc-8.0 --without-python cxxflags=/wd4251 stage

OK, try this:

  bjam --toolset=msvc-8.0 --without-python cxxflags=-wd4251 stage

I think it's a problem in BBv2 that "/" is given special meaning in
property values.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
Don't Miss BoostCon 2007! ==> http://www.boostcon.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net