Boost logo

Boost-Build :

Subject: Re: [Boost-build] [msvc] defines to turn of security mode
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-12-03 12:10:35


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? 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.

- Volodya


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