コードのコンパイル中に未解決の外部シンボルエラーが発生しています。私はサードパーティのライブラリを使用しています。そのため、コードをコンパイルする際にサードパーティのライブラリの名前空間を使用します。未解決の外部シンボルエラー:解決できません
std_uss.obj : error LNK2019: unresolved external symbol "
__declspec(dllimport) void __cdecl os_std::os_throw_length_error(void)
" ([email protected][email protected]@YAXXZ
) referenced in function "private: char * __thiscall os_std::basic_string<char,class os_std::char_traits_char,class os_std::allocator<char> >::allocate(unsigned int)
" ([email protected][email protected][email protected][email protected]@V?[email protected]@[email protected]@[email protected]@[email protected]
)
私は、第三部品ライブラリのファイルのいずれかにos_throw_length_error機能を発見したが、へ::コードでアロケータと同様の任意の関数を見つけることができませんでした。コンパイラにサードパーティの名前空間を使用させたいので、標準のstd名前空間は使用しませんでした。
using namespace std
を標準で使用すると、コンパイルは成功しますが、文字列のような定義がサードパーティ製の文字列関数ではなくVisual Studioの文字列に参照されるようになります。
_サードパーティライブラリですか? –
サードパーティのライブラリは再帰ソフトウェア – novice