Boost logo

Boost Users :

From: Johan Råde (rade_at_[hidden])
Date: 2008-07-02 12:19:43


Steven Watanabe wrote:
> AMDG
>
> Johan Råde wrote:
>> What is the bjam command line syntax for disabling "Secure SCL" when I
>> build boost with MSVC 9.0?
>> Is it
>>
>> bjam --toolset=msvc-9.0 --cxxflags="-D_SECURE_SCL=0"
>
> You shouldn't use "--" for features, and you can use the
> define feature.
>
> bjam toolset=msvc-9.0 define=_SECURE_SCL=0
>
> In Christ,
> Steven Watanabe

I need to build two versions:

1. debug, dynamic linking, secure SCL
2. release, static linking, no secure SCL

Both versions should use the dynamic runtime and multi-threading.
And I need zlib support with my iostreams.

Is the following correct

bjam toolset=msvc-9.0 runtime-link=dynamic threading=multi debug/link=dynamic/define=_SECURE_SCL=1
release/link=static/define=_SECURE_SCL=0 --NO_ZLIB=0 -sZLIB_SOURCE=C:\ZLib install

--Johan


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