|
Boost : |
Subject: Re: [boost] Boost and (Microsoft's) _SECURE_SCL
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2010-11-04 17:13:38
[STL]
> Yes. VC10's linker deterministically detects IDL mismatch and emits hard
> errors, naming the offending object files. (This machinery, #pragma
> detect_mismatch, is available for anyone to use. It will also detect when
> object files using the C++ Standard Library and compiled with different
> major versions of VC are mixed together, as long as both are VC10+;
> unfortunately we can't detect mixing when VC9 or earlier is involved.)
[John Maddock]
> I've been testing this, and it works well for object files being linked into
> one application (and presumably for static libraries), but appears not to
> detect mismatches between an application and a DLL, which basically makes it
> next to useless... unless I'm missing something?
If you're using import libs, that *should* work.
If you're using LoadLibrary(), there's no way to detect mismatch in that case.
STL
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk