Advertisement
Guest User

Untitled

a guest
May 25th, 2015
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | None | 0 0
  1. g++ -std=c++11 -I /home/piovezan/workspace/gtest-1.7.0/include -L /home/piovezan/workspace/gtest-1.7.0 -lgtest -lgtest_main -o test.out test1.cpp
  2. /home/piovezan/workspace/gtest-1.7.0/libgtest_main.a(gtest_main.cc.o): In function `main':
  3. gtest_main.cc:(.text+0x28): undefined reference to `testing::InitGoogleTest(int*, char**)'
  4. /home/piovezan/workspace/gtest-1.7.0/libgtest_main.a(gtest_main.cc.o): In function `RUN_ALL_TESTS()':
  5. gtest_main.cc:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0x5): undefined reference to `testing::UnitTest::GetInstance()'
  6. gtest_main.cc:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0xd): undefined reference to `testing::UnitTest::Run()'
  7. /tmp/ccG3jGHx.o: In function `BasicGraphsTest_ConstructorsWorkProperly_Test::TestBody()':
  8. test1.cpp:(.text+0x78): undefined reference to `testing::Message::Message()'
  9. test1.cpp:(.text+0xa5): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
  10. test1.cpp:(.text+0xb8): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
  11. test1.cpp:(.text+0xc4): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
  12. test1.cpp:(.text+0x139): undefined reference to `testing::Message::Message()'
  13. test1.cpp:(.text+0x166): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
  14. test1.cpp:(.text+0x179): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
  15. test1.cpp:(.text+0x185): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
  16. test1.cpp:(.text+0x1bd): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
  17. test1.cpp:(.text+0x1f0): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
  18. /tmp/ccG3jGHx.o: In function `__static_initialization_and_destruction_0(int, int)':
  19. test1.cpp:(.text+0x28e): undefined reference to `testing::internal::GetTestTypeId()'
  20. test1.cpp:(.text+0x2bd): undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
  21. /tmp/ccG3jGHx.o: In function `BasicGraphsTest_ConstructorsWorkProperly_Test::BasicGraphsTest_ConstructorsWorkProperly_Test()':
  22. test1.cpp:(.text._ZN45BasicGraphsTest_ConstructorsWorkProperly_TestC2Ev[_ZN45BasicGraphsTest_ConstructorsWorkProperly_TestC5Ev]+0x14): undefined reference to `testing::Test::Test()'
  23. /tmp/ccG3jGHx.o: In function `testing::internal::scoped_ptr<std::string>::reset(std::string*)':
  24. test1.cpp:(.text._ZN7testing8internal10scoped_ptrISsE5resetEPSs[_ZN7testing8internal10scoped_ptrISsE5resetEPSs]+0x29): undefined reference to `testing::internal::IsTrue(bool)'
  25. /tmp/ccG3jGHx.o: In function `testing::internal::scoped_ptr<std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > >::reset(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)':
  26. test1.cpp:(.text._ZN7testing8internal10scoped_ptrISt18basic_stringstreamIcSt11char_traitsIcESaIcEEE5resetEPS6_[_ZN7testing8internal10scoped_ptrISt18basic_stringstreamIcSt11char_traitsIcESaIcEEE5resetEPS6_]+0x28): undefined reference to `testing::internal::IsTrue(bool)'
  27. /tmp/ccG3jGHx.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, unsigned long>(char const*, char const*, int const&, unsigned long const&)':
  28. test1.cpp:(.text._ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x3a): undefined reference to `testing::AssertionSuccess()'
  29. test1.cpp:(.text._ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x92): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
  30. /tmp/ccG3jGHx.o:(.rodata._ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test[_ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test]+0x20): undefined reference to `testing::Test::SetUp()'
  31. /tmp/ccG3jGHx.o:(.rodata._ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test[_ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test]+0x28): undefined reference to `testing::Test::TearDown()'
  32. /tmp/ccG3jGHx.o: In function `BasicGraphsTest_ConstructorsWorkProperly_Test::~BasicGraphsTest_ConstructorsWorkProperly_Test()':
  33. test1.cpp:(.text._ZN45BasicGraphsTest_ConstructorsWorkProperly_TestD2Ev[_ZN45BasicGraphsTest_ConstructorsWorkProperly_TestD5Ev]+0x1f): undefined reference to `testing::Test::~Test()'
  34. /tmp/ccG3jGHx.o:(.rodata._ZTI45BasicGraphsTest_ConstructorsWorkProperly_Test[_ZTI45BasicGraphsTest_ConstructorsWorkProperly_Test]+0x10): undefined reference to `typeinfo for testing::Test'
  35. collect2: error: ld returned 1 exit status
  36. make: *** [test] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement