GitHub - coderdream/data-structure-and-algorithm: 数据结构与算法的学习笔记

D:\CLion_2021.2.2\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEPENDS_USE_COMPILER=FALSE -G "CodeBlocks - MinGW Makefiles" C:\Users\ccc\CLionProjects\Auto_arr
CMake Warning at googletest/CMakeLists.txt:54 (project):
  VERSION keyword not followed by a value or was followed by a value that
  expanded to nothing.


-- Could NOT find Python (missing: Python_EXECUTABLE Interpreter) 
CMake Error at googletest/CMakeLists.txt:132 (set_target_properties):
  set_target_properties called with incorrect number of arguments.


CMake Error at googletest/CMakeLists.txt:134 (set_target_properties):
  set_target_properties called with incorrect number of arguments.


-- Configuring incomplete, errors occurred!
See also "C:/Users/ccc/CLionProjects/Auto_arr/cmake-build-debug/CMakeFiles/CMakeOutput.log".

[Finished]

====================[ Build | add | Debug ]=====================================
D:\CLion_2021.2.2\bin\cmake\win\bin\cmake.exe --build C:\Users\ccc\CLionProjects\Auto_arr\cmake-build-debug --target add -- -j 12
Scanning dependencies of target add
[ 50%] Building CXX object CMakeFiles/add.dir/add.cpp.obj
[100%] Linking CXX executable add.exe
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test1_Test::TestBody()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:15: undefined reference to `testing::Message::Message()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:15: undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:15: undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:15: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:15: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test2_Test::TestBody()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:19: undefined reference to `testing::Message::Message()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:19: undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:19: undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:19: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:19: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test3_Test::TestBody()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:23: undefined reference to `testing::Message::Message()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:23: undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:23: undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:23: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:23: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `main':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:27: undefined reference to `testing::InitGoogleTest(int*, char**)'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `__static_initialization_and_destruction_0':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:14: undefined reference to `testing::internal::GetTestTypeId()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:14: undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:18: undefined reference to `testing::internal::GetTestTypeId()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:18: undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:22: undefined reference to `testing::internal::GetTestTypeId()'
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:22: undefined reference to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test1_Test::TestCase_test1_Test()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:14: undefined reference to `testing::Test::Test()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test2_Test::TestCase_test2_Test()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:18: undefined reference to `testing::Test::Test()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test3_Test::TestCase_test3_Test()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:22: undefined reference to `testing::Test::Test()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `testing::internal::SuiteApiResolver<testing::Test>::GetSetUpCaseOrSuite(char const*, int)':
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:516: undefined reference to `testing::internal::IsTrue(bool)'
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:516: undefined reference to `testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int)'
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:516: undefined reference to `testing::internal::GTestLog::~GTestLog()'
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:516: undefined reference to `testing::internal::GTestLog::~GTestLog()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `testing::internal::SuiteApiResolver<testing::Test>::GetTearDownCaseOrSuite(char const*, int)':
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:531: undefined reference to `testing::internal::IsTrue(bool)'
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:531: undefined reference to `testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int)'
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:531: undefined reference to `testing::internal::GTestLog::~GTestLog()'
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/internal/gtest-internal.h:531: undefined reference to `testing::internal::GTestLog::~GTestLog()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)':
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/gtest.h:1528: undefined reference to `testing::AssertionSuccess()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `testing::AssertionResult testing::internal::CmpHelperEQFailure<int, int>(char const*, char const*, int const&, int const&)':
C:/Users/ccc/CLionProjects/Auto_arr/googletest/include/gtest/gtest.h:1511: undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
CMakeFiles\add.dir/objects.a(add.cpp.obj):add.cpp:(.rdata$_ZTV19TestCase_test3_Test[_ZTV19TestCase_test3_Test]+0x20): undefined reference to `testing::Test::SetUp()'
CMakeFiles\add.dir/objects.a(add.cpp.obj):add.cpp:(.rdata$_ZTV19TestCase_test3_Test[_ZTV19TestCase_test3_Test]+0x28): undefined reference to `testing::Test::TearDown()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test3_Test::~TestCase_test3_Test()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:22: undefined reference to `testing::Test::~Test()'
CMakeFiles\add.dir/objects.a(add.cpp.obj):add.cpp:(.rdata$_ZTV19TestCase_test2_Test[_ZTV19TestCase_test2_Test]+0x20): undefined reference to `testing::Test::SetUp()'
CMakeFiles\add.dir/objects.a(add.cpp.obj):add.cpp:(.rdata$_ZTV19TestCase_test2_Test[_ZTV19TestCase_test2_Test]+0x28): undefined reference to `testing::Test::TearDown()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test2_Test::~TestCase_test2_Test()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:18: undefined reference to `testing::Test::~Test()'
CMakeFiles\add.dir/objects.a(add.cpp.obj):add.cpp:(.rdata$_ZTV19TestCase_test1_Test[_ZTV19TestCase_test1_Test]+0x20): undefined reference to `testing::Test::SetUp()'
CMakeFiles\add.dir/objects.a(add.cpp.obj):add.cpp:(.rdata$_ZTV19TestCase_test1_Test[_ZTV19TestCase_test1_Test]+0x28): undefined reference to `testing::Test::TearDown()'
CMakeFiles\add.dir/objects.a(add.cpp.obj): In function `TestCase_test1_Test::~TestCase_test1_Test()':
C:/Users/ccc/CLionProjects/Auto_arr/add.cpp:14: undefined reference to `testing::Test::~Test()'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[3]: *** [CMakeFiles\add.dir\build.make:95: add.exe] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:185: CMakeFiles/add.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:192: CMakeFiles/add.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:162: add] Error 2

C:\CLionProjects\Auto_arr\cmake-build-debug\Auto_arr.exe
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from TestCase
[ RUN      ] TestCase.test1
[       OK ] TestCase.test1 (0 ms)
[ RUN      ] TestCase.test2
[       OK ] TestCase.test2 (0 ms)
[ RUN      ] TestCase.test3
[       OK ] TestCase.test3 (0 ms)
[----------] 3 tests from TestCase (8 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test suite ran. (15 ms total)
[  PASSED  ] 3 tests.
0

Process finished with exit code 0