LNK 2022: Inconsistent layout information, after migrating to VS2010
问题 I have a VS2010 solution that contains (among others), the following projects: Native.DLL (native C++ project that statically links to a third party lib, ITK, which includes STL) Pseudo-code (very simplified): using namespace std; bool Native::CalcSomething(double* result, string& errorMsg); Wrapper.DLL (C++/CLI project that dynamically links to Native.DLL and uses std:string in a call to the Native.DLL) Pseudo-code (very simplified) bool Wrapper::WrappedCalcSomething([System::Runtime: