Getting dynamic atexit destructor link error with custom toolset - eh vector destructor
问题 I'm getting a weird linker error when trying to compile against a VS2005 CRT with a Visual Studio 2015 toolset. The same code compiles perfect on any other toolset version (2005,2010,2012,2013). The code must compile under VS2005 CRT to properly link with other projects. How to reproduce: Create a new empty Dynamic Library (dll) project (In VS2015, toolset v140), add a source (.cpp) file: //1.cpp #include <string> static std::wstring thisWillFail[] = { L"test" }; Change the VC++ include