Visual studio 使用VS 2015 RC,can';时发生链接器错误;找不到与std::codecvt相关的符号

Visual studio 使用VS 2015 RC,can';时发生链接器错误;找不到与std::codecvt相关的符号,visual-studio,c++11,stl,codecvt,Visual Studio,C++11,Stl,Codecvt,我使用Microsoft Visual Studio Community 2015 RC(版本14.0.22823.1 D14REL)收到一个与STL相关的链接错误 我链接了一个C++ DLL,成功地使用了STL的许多函数,但是它找不到与STD::CODECVT: < /P>有关的东西。 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::locale::id std

我使用Microsoft Visual Studio Community 2015 RC(版本14.0.22823.1 D14REL)收到一个与STL相关的链接错误

我链接了一个C++ DLL,成功地使用了STL的许多函数,但是它找不到与STD::CODECVT: < /P>有关的东西。
error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::locale::id std::codecvt<char32_t,char,struct _Mbstatet>::id" (__imp_?id@?$codecvt@_UDU_Mbstatet@@@std@@2V0locale@2@A)
错误LNK2001:未解析的外部符号“\uu declspec(dllimport)public:静态类std::locale::id std::codecvt::id”(\uu imp?id@$codecvt@_UDU_Mbstatet@@@性病@@2V0locale@2@(A)
导致此问题的源代码引用:

std::wstring_convert< std::codecvt_utf8<char32_t>, char32_t > convert;
std::wstring\u convertconvert;
我的代码是为多线程dll生成的,我已经通过详细链接验证了在链接时正在搜索MSVCPRT.lib


有什么想法?

来澄清问题和解决方案:Microsoft承认,
std::codecvt
不是根据Microsoft Visual Studio 2015 RC提供的std库中的
char32\t
构建的。解决方法是使用
无符号int
\uuu int32
类型:

    std::wstring_convert< std::codecvt_utf8<unsigned int>, unsigned int > convert;
std::wstring\u convertconvert;

std::wstring\u convertconvert;
而不是

    std::wstring_convert< std::codecvt_utf8<char32_t>, char32_t > convert;
std::wstring\u convertconvert;

更新:Microsoft在MSDN上对此进行了回复(已知问题):此解决方法可行,但它会导致一个问题,即您的基本\u字符串也必须基于unsigned int。这简直是地狱。
    std::wstring_convert< std::codecvt_utf8<char32_t>, char32_t > convert;