Boost logo

Boost-Build :

Subject: Re: [Boost-build] [msvc] defines to turn of security mode
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-12-04 05:15:47


Vladimir Prus skrev:
> On Wednesday 03 December 2008 20:03:20 Thorsten Ottosen wrote:
>> Hi,
>>
>> Am I right that by default the msvc toolset does not turn of this
>> security stuff from microsoft?
>
> Yes, it does not turn them off.
>
>> When I did
>>
>> nesotto_at_ottosen /cygdrive/d/boost/trunk/tools/build/v2/tools
>> $ grep -rin "secure" *
>> intel-win.jam:91: # Disable Microsoft "secure" overloads in
>> Dinkumware librar
>> ies since they
>> intel-win.jam:93: C++FLAGS += -D_SECURE_SCL=0 ;
>> mpi.jam:250: <toolset>msvc:<define>_SECURE_SCL=0
>>
>>
>> there are aparently no flags in the msvc toolset. I have seen other
>> pages recomment the following:
>>
>> "If you use and of the compiled libraries in boost, just add this to
>> your bjam command-line:
>> define=_CRT_NONSTDC_NO_DEPRECATE define=_CRT_SECURE_NO_DEPRECATE
>> define=_SECURE_SCL=0 define=_SCL_SECURE_NO_DEPRECATE
>> define=_HAS_ITERATOR_DEBUGGING=0"
>
> Sorry, what is your question or suggestion?

My suggestion is that these are defined as above, except
_HAS_ITERATOR_DEBUGGING, which is only there in debug builds anyway.

>Above, grammatically, is just
> a statement of a fact. I'll be happy with a patch to disable these,
> or add a feature disabling this, if msvc users find that useful and agree,
> via straw poll or otherwise, on what is needed.

Excellent. Should such a straw poll be made on this list or in the dev
list/users list? Or all three?

-Thorsten


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk