Boost logo

Boost Users :

Subject: Re: [Boost-users] std::string corrupt after including boost
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-10-29 04:42:28


>>>> Once I have removed #define _SECURE_SCL 0 from my program,
>>>> craches disappeared.
>>>
>
> I remember having the same issue with program_options a while ago. But
> why does that happen? What does program_option do that makes it so
> fragile without _SECURE_SCL?
>
> Other libs seems to work just fine.

I believe that code compiled with that option is binary incompatible with
code compiled without it - so if you link with a library that depends on a
std lib symbol that changes it's interface based on that define, then you'd
better be sure to use the same settings as that library (or else recompile
the lib).

HTH, John.


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