Re: A solution to warning C4251 - class needs to have dll-interface...?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ben Voigt [C++ MVP] wrote:
The poster is using different CRT (different VC++ versions). Moreover,
it's different STL headers as well, so there will be
ODR violations and therefore runtime failures.

Sorry for being unclear. My question was not about mixing different VC++
versions. Here at LKEB, we're using both VC++ 7.1 and 8.0, but usually not
at the same time! I wasn't intending to mix different versions of the STL
and the CRT!

So I have no more questions about warning C4251, at the moment... Thanks
again, Doug!


Kind regards, Niels





.