1

私が得ている次の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)
4

2 に答える 2

0

プロジェクト設定に必要なすべてのdllまたはlibファイルが含まれているかどうかを確認しましたか?

このようなエラーは通常、定義が見つかった関数を使用したことを示していますが、実装はそうではありません。通常、外部ライブラリの場合、実装はdllまたは静的ライブラリ内にあります。dllまたは静的ライブラリを提供しないと、リンクが失敗します。

于 2010-02-01T12:12:36.313 に答える
0

どのバージョンの Visual Studio を使用していますか? これは VS2005 に関連している可能性があります: DLL からの CString 派生クラスを使用したリンク エラー

于 2010-02-01T12:15:05.883 に答える