Created
September 26, 2014 02:18
-
-
Save acgetchell/12abdc4681c700543d2a to your computer and use it in GitHub Desktop.
cmake-tutorial-gmock-1.7-with-fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌─[adam][Hapkido][±][master ✓][~/cmake-tutorial] | |
└─▪ mkdir build | |
┌─[adam][Hapkido][±][master ✓][~/cmake-tutorial] | |
└─▪ cd build | |
┌─[adam][Hapkido][±][master ✓][~/cmake-tutorial/build] | |
└─▪ cmake -G "Unix Makefiles" .. | |
-- The C compiler identification is AppleClang 6.0.0.6000051 | |
-- The CXX compiler identification is AppleClang 6.0.0.6000051 | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Found PythonInterp: /usr/bin/python (found version "2.7.5") | |
-- Looking for include file pthread.h | |
-- Looking for include file pthread.h - found | |
-- Looking for pthread_create | |
-- Looking for pthread_create - found | |
-- Found Threads: TRUE | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /Users/adam/cmake-tutorial/build | |
┌─[adam][Hapkido][±][master ✓][~/cmake-tutorial/build] | |
└─▪ make | |
Scanning dependencies of target toDoCore | |
[ 10%] Building CXX object ToDoCore/CMakeFiles/toDoCore.dir/ToDo.cpp.o | |
Linking CXX static library libtoDoCore.a | |
[ 10%] Built target toDoCore | |
Scanning dependencies of target toDo | |
[ 20%] Building CXX object CMakeFiles/toDo.dir/main.cpp.o | |
Linking CXX executable toDo | |
[ 20%] Built target toDo | |
Scanning dependencies of target gmock_main | |
[ 30%] Building CXX object gmock/CMakeFiles/gmock_main.dir/gtest/src/gtest-all.cc.o | |
[ 40%] Building CXX object gmock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o | |
[ 50%] Building CXX object gmock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o | |
Linking CXX static library libgmock_main.a | |
[ 50%] Built target gmock_main | |
Scanning dependencies of target ToDoTest | |
[ 60%] Building CXX object ToDoCore/unit_test/CMakeFiles/ToDoTest.dir/ToDoTest.cpp.o | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
variable has incomplete type 'class ToDoTest_constructor' | |
TEST_F(ToDoTest, constructor _createsEmptyList) | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1137:7: note: | |
expanded from macro 'GTEST_TEST_' | |
class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:22: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
_createsEmptyList_Test | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: note: forward | |
declaration of 'ToDoCore::testing::ToDoTest_constructor' | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1137:7: note: | |
expanded from macro 'GTEST_TEST_' | |
class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:3: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:143:1: note: expanded from here | |
ToDoTest_constructor | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
expected ';' after top level declarator | |
TEST_F(ToDoTest, constructor _createsEmptyList) | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1137:57: note: | |
expanded from macro 'GTEST_TEST_' | |
class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
expected unqualified-id | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1137:59: note: | |
expanded from macro 'GTEST_TEST_' | |
class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: default | |
initialization of an object of const type '::testing::TestInfo *const' | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1147:28: note: | |
expanded from macro 'GTEST_TEST_' | |
::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:3: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
ToDoTest_constructor | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
expected ';' after top level declarator | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1147:28: note: | |
expanded from macro 'GTEST_TEST_' | |
::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:22: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
_createsEmptyList_Test | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
expected a class or namespace | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1147:28: note: | |
expanded from macro 'GTEST_TEST_' | |
::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:22: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
_createsEmptyList_Test | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
variable has incomplete type 'void' | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1156:6: note: | |
expanded from macro 'GTEST_TEST_' | |
void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:3: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
ToDoTest_constructor | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
expected ';' after top level declarator | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1156:6: note: | |
expanded from macro 'GTEST_TEST_' | |
void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:22: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
_createsEmptyList_Test | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:37:5: error: | |
expected a class or namespace | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1156:6: note: | |
expanded from macro 'GTEST_TEST_' | |
void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:22: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:144:1: note: expanded from here | |
_createsEmptyList_Test | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:42:5: error: use of | |
undeclared identifier 'ToDoTest_addTask_threeTimes_sizeIsThree_Test' | |
TEST_F(ToDoTest, addTask_threeTimes_sizeIsThree) | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1147:28: note: | |
expanded from macro 'GTEST_TEST_' | |
::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:3: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:17:1: note: expanded from here | |
ToDoTest_addTask_threeTimes_sizeIsThree_Test | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/ToDoTest.cpp:42:5: error: use of | |
undeclared identifier 'ToDoTest_addTask_threeTimes_sizeIsThree_Test' | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/gtest.h:2272:3: note: | |
expanded from macro 'TEST_F' | |
GTEST_TEST_(test_fixture, test_name, test_fixture, \ | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1156:6: note: | |
expanded from macro 'GTEST_TEST_' | |
void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() | |
^ | |
/Users/adam/cmake-tutorial/ToDoCore/unit_test/../../../gmock-1.7.0/gtest/include/gtest/internal/gtest-internal.h:1133:3: note: | |
expanded from macro 'GTEST_TEST_CLASS_NAME_' | |
test_case_name##_##test_name##_Test | |
^ | |
<scratch space>:17:1: note: expanded from here | |
ToDoTest_addTask_threeTimes_sizeIsThree_Test | |
^ | |
11 errors generated. | |
make[2]: *** [ToDoCore/unit_test/CMakeFiles/ToDoTest.dir/ToDoTest.cpp.o] Error 1 | |
make[1]: *** [ToDoCore/unit_test/CMakeFiles/ToDoTest.dir/all] Error 2 | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment