Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3046: msvc9 boost::regex crashes with _SECURE_SCL=0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-19 11:35:11
#3046: msvc9 boost::regex crashes with _SECURE_SCL=0
----------------------------------------------+-----------------------------
Reporter: Sven Olsen <sven2718_at_[hidden]> | Owner: johnmaddock
Type: Bugs | Status: closed
Milestone: Boost 1.40.0 | Component: regex
Version: Boost 1.38.0 | Severity: Problem
Resolution: invalid | Keywords:
----------------------------------------------+-----------------------------
Changes (by johnmaddock):
* status: new => closed
* resolution: => invalid
Comment:
Hi Sven,
This is a known issue with _SECURE_SCL: changing this from the default
setting '''changes the ABI of microsofts standard library'''. As a result
you cannot link code compiled with _SECURE_SCL=0 against any library
(including Boost.Regex) which has been compiled with the default compiler
options for this flag. If you want to use _SECURE_SCL=0 in your code,
then you will need to build Boost.Regex with the same setting.
One quick fix would be to add the .cpp files for Boost.Regex (in
libs/regex/src) directly to your projects src files folder then set the
#define BOOST_REGEX_NO_LIB along with _SECURE_SCL=0 in the project
settings and rebuild everything.
HTH, John.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3046#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC