'./configure' を実行した後に 'make' を実行して glog をコンパイルすると問題が発生し、エラーが発生しました。
アーキテクチャ x86_64 の未定義シンボル: "testing::internal::StrStreamToString(std::__1::basic_stringstream, std::__1::allocator > )"、次から参照: testing::internal::String testing::internal:: logging_unittest-logging_unittest.o の StreamableToString(void const const&) testing::internal::String testing::internal::StreamableToString(int const&) logging_unittest-logging_unittest.o ld の ld: アーキテクチャ x86_64 のシンボルが見つかりませんでした: エラー: リンカー コマンドが終了コード 1 で失敗しました (呼び出しを確認するには -v を使用してください) make: * [logging_unittest] エラー 1
Mac OS X で glog-0.3.3 を使用しています。glog のコンパイル中にテストを無効にするにはどうすればよいですか?
別のコンテキストでは、Macport を使用して glog と gflags をインストールし、小さなプログラムを実行しました。エラーが生成されます:「エラー: 不明なコマンド ライン フラグ 'logtostderr'」
それがgflagsへのリンクの問題だと思います。では、どうすれば修正できますか。ありがとう