Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. CMakeLists.txt 의 가장 아래에 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") 추가를 하고 다시 make 한 결과입니다.

-VirtualBox:~/workdir/hello_world/hello_world-build/debug$ make [ 6%] Built target internal_create_launchers [ 10%] Built target internal_import_manifest_dirs [ 20%] Built target internal_import_resource_dirs [ 24%] Building CXX object src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:12:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/common.h:457:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:30:31: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(Character); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:147:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:31:26: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(User); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:128:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:476:28: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(Character); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:512:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:836:23: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(User); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:854:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:1663:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ cc1plus: all warnings being treated as errors src/CMakeFiles/hello_world.dir/build.make:203: recipe for target 'src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o' failed make[2]: * [src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o] Error 1 CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/hello_world.dir/all' failed make[1]: [src/CMakeFiles/hello_world.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2 VirtualBox:~/workdir/hello_world/hello_world-build/debug$

  1. CMakeLists.txt 의 가장 아래에 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") 추가를 하고 다시 make 한 결과입니다.

-VirtualBox:~/workdir/hello_world/hello_world-build/debug$ make [ 6%] Built target internal_create_launchers [ 10%] Built target internal_import_manifest_dirs [ 20%] Built target internal_import_resource_dirs [ 24%] Building CXX object src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:12:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/common.h:457:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:30:31: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(Character); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:147:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:31:26: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(User); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:128:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:476:28: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(Character); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:512:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:836:23: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(User); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:854:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:1663:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ cc1plus: all warnings being treated as errors src/CMakeFiles/hello_world.dir/build.make:203: recipe for target 'src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o' failed make[2]: * [src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o] Error 1 CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/hello_world.dir/all' failed make[1]: [src/CMakeFiles/hello_world.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2 VirtualBox:~/workdir/hello_world/hello_world-build/debug$ VirtualBox:~/workdir/hello_world/hello_world-build/debug$

  1. CMakeLists.txt 의 가장 아래에 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") 추가를 하고 다시 make 한 결과입니다.

    -VirtualBox:~/workdir/hello_world/hello_world-build/debug$ make [ 6%] Built target internal_create_launchers [ 10%] Built target internal_import_manifest_dirs [ 20%] Built target internal_import_resource_dirs [ 24%] Building CXX object src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:12:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/common.h:457:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:30:31: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(Character); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:147:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:31:26: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(User); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:128:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:476:28: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(Character); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:512:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:836:23: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(User); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:854:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:1663:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ cc1plus: all warnings being treated as errors src/CMakeFiles/hello_world.dir/build.make:203: recipe for target 'src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o' failed make[2]: * [src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o] Error 1 CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/hello_world.dir/all' failed make[1]: [src/CMakeFiles/hello_world.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2 VirtualBox:~/workdir/hello_world/hello_world-build/debug$

  1. CMakeLists.txt 의 가장 아래에 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") 추가를 하고 다시 make 한 결과입니다.

    -VirtualBox:~/workdir/hello_world/hello_world-build/debug$ make [ 6%] Built target internal_create_launchers [ 10%] Built target internal_import_manifest_dirs [ 20%] Built target internal_import_resource_dirs [ 24%] Building CXX object src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:12:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/common.h:457:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:30:31: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(Character); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:147:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:31:26: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(User); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:128:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:476:28: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(Character); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:512:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:836:23: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(User); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:854:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:1663:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ cc1plus: all warnings being treated as errors src/CMakeFiles/hello_world.dir/build.make:203: recipe for target 'src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o' failed make[2]: * [src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o] Error 1 CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/hello_world.dir/all' failed make[1]: [src/CMakeFiles/hello_world.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2 VirtualBox:~/workdir/hello_world/hello_world-build/debug$