
29 Oct
2010
29 Oct
'10
8:42 a.m.
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.