Boost logo

Boost Users :

From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2007-05-16 12:12:53


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 and aborts without
> building anything. So I tried
>
> bjam --toolset=msvc-8.0 --cxxflags=/wd4251
>
> and it was better, but not good enough. It did compile this time, only
> warning 4251 was still not disabled. So I tried
>
> bjam -d+2 --toolset=msvc-8.0 --cxxflags=/wd4251
>
> to show the actual command executed (as suggested by bjam --help) but I
> couldn't figure anything from it. It seems 'cl' is passed some .rsp
> files, instead of .cpp file (as I expected). The command line didn't
> include '/wd4251', but maybe it's because the usage of the .rsp file
> (which I have no idea what it is).
>
> To conclude, I still can't disable a warning...

Ping...


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