Visual c++ VC+中的链接错误+;

Visual c++ VC+中的链接错误+;,visual-c++,msdn,Visual C++,Msdn,我需要帮助理解下面的LNK错误 SwitchFunctions error LNK2019: unresolved external symbol "__declspec(dllimport) ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z" (__imp_??$?8DU?$char_traits@D@

我需要帮助理解下面的LNK错误

SwitchFunctions error LNK2019: unresolved external symbol "__declspec(dllimport) ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z) referenced in function "??$find@Viterator@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PBD@std@@YA?AViterator@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@0@V120@0ABQBD@Z" (??$find@Viterator@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PBD@std@@YA?AViterator@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@0@V120@0ABQBD@Z)

是否已检查项目设置中是否包含了所有必需的DLL或lib文件


这样的错误通常表示您使用了一个定义已找到但实现未找到的函数。通常在外部库的情况下,实现在dll或静态库中。未能提供dll或静态库将导致链接失败。

您使用的是哪个版本的Visual Studio?这可能与VS2005有关:

考虑将输出格式化为代码,这样可以添加滚动条并便于阅读。