プロジェクトを VS2010 に変換しました。googletest ベースの単体テスト プロジェクトが含まれています。マクロを使用するとEXPECT_EQ
、次のリンカ エラーが発生します。
LNK2019: 未解決の外部シンボル "class testing::internal::String __cdecl testing::internal::StrStreamToString(class std::basic_stringstream,class std::allocator > *)" (?StrStreamToString@internal@testing@@YA? AVString @12@PAV?$basic_stringstream@DU?$char_traits@D@std@@V? $allocator@D@2@@std@@@Z) 関数で参照される "public: class testing::internal::String __thiscall testing ::Message::GetString(void)const " (? GetString@Message@testing@@QBE?AVString@internal@2@XZ)
を使用するEXPECT_TRUE
と、すべて正常に動作します。この問題について知っている人はいますか?
ありがとうございました