Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- /home/piovezan/workspace/gtest-1.7.0/libgtest_main.a(gtest_main.cc.o): In function `main':
- gtest_main.cc:(.text+0x28): undefined reference to `testing::InitGoogleTest(int*, char**)'
- /home/piovezan/workspace/gtest-1.7.0/libgtest_main.a(gtest_main.cc.o): In function `RUN_ALL_TESTS()':
- gtest_main.cc:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0x5): undefined reference to `testing::UnitTest::GetInstance()'
- gtest_main.cc:(.text._Z13RUN_ALL_TESTSv[_Z13RUN_ALL_TESTSv]+0xd): undefined reference to `testing::UnitTest::Run()'
- /tmp/ccG3jGHx.o: In function `BasicGraphsTest_ConstructorsWorkProperly_Test::TestBody()':
- test1.cpp:(.text+0x78): undefined reference to `testing::Message::Message()'
- test1.cpp:(.text+0xa5): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
- test1.cpp:(.text+0xb8): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
- test1.cpp:(.text+0xc4): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
- test1.cpp:(.text+0x139): undefined reference to `testing::Message::Message()'
- test1.cpp:(.text+0x166): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
- test1.cpp:(.text+0x179): undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
- test1.cpp:(.text+0x185): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
- test1.cpp:(.text+0x1bd): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
- test1.cpp:(.text+0x1f0): undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
- /tmp/ccG3jGHx.o: In function `__static_initialization_and_destruction_0(int, int)':
- test1.cpp:(.text+0x28e): undefined reference to `testing::internal::GetTestTypeId()'
- 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*)'
- /tmp/ccG3jGHx.o: In function `BasicGraphsTest_ConstructorsWorkProperly_Test::BasicGraphsTest_ConstructorsWorkProperly_Test()':
- test1.cpp:(.text._ZN45BasicGraphsTest_ConstructorsWorkProperly_TestC2Ev[_ZN45BasicGraphsTest_ConstructorsWorkProperly_TestC5Ev]+0x14): undefined reference to `testing::Test::Test()'
- /tmp/ccG3jGHx.o: In function `testing::internal::scoped_ptr<std::string>::reset(std::string*)':
- test1.cpp:(.text._ZN7testing8internal10scoped_ptrISsE5resetEPSs[_ZN7testing8internal10scoped_ptrISsE5resetEPSs]+0x29): undefined reference to `testing::internal::IsTrue(bool)'
- /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> >*)':
- test1.cpp:(.text._ZN7testing8internal10scoped_ptrISt18basic_stringstreamIcSt11char_traitsIcESaIcEEE5resetEPS6_[_ZN7testing8internal10scoped_ptrISt18basic_stringstreamIcSt11char_traitsIcESaIcEEE5resetEPS6_]+0x28): undefined reference to `testing::internal::IsTrue(bool)'
- /tmp/ccG3jGHx.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, unsigned long>(char const*, char const*, int const&, unsigned long const&)':
- test1.cpp:(.text._ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x3a): undefined reference to `testing::AssertionSuccess()'
- 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)'
- /tmp/ccG3jGHx.o:(.rodata._ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test[_ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test]+0x20): undefined reference to `testing::Test::SetUp()'
- /tmp/ccG3jGHx.o:(.rodata._ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test[_ZTV45BasicGraphsTest_ConstructorsWorkProperly_Test]+0x28): undefined reference to `testing::Test::TearDown()'
- /tmp/ccG3jGHx.o: In function `BasicGraphsTest_ConstructorsWorkProperly_Test::~BasicGraphsTest_ConstructorsWorkProperly_Test()':
- test1.cpp:(.text._ZN45BasicGraphsTest_ConstructorsWorkProperly_TestD2Ev[_ZN45BasicGraphsTest_ConstructorsWorkProperly_TestD5Ev]+0x1f): undefined reference to `testing::Test::~Test()'
- /tmp/ccG3jGHx.o:(.rodata._ZTI45BasicGraphsTest_ConstructorsWorkProperly_Test[_ZTI45BasicGraphsTest_ConstructorsWorkProperly_Test]+0x10): undefined reference to `typeinfo for testing::Test'
- collect2: error: ld returned 1 exit status
- make: *** [test] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement