0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

catkin build時にエラーになる(error: ‘xxx’ is not a class or namespace)

Posted at

catkin build時にエラーになる

$ cd catkin_ws
$ catkin build
src/following_planner.cpp:163:23: error: ‘GoalStatus’ is not a class or namespace
   else if (status_ == GoalStatus::GOALREACHED)
                       ^
make[2]: *** [CMakeFiles/following_planner.dir/src/following_planner.cpp.o] Error 1
make[1]: *** [CMakeFiles/following_planner.dir/all] Error 2

以下の通りCMakelist.txtにc++のコンパイルオプションを追加して解決

CMakelist.txt
-# add_compile_options(-std=c++11)
+add_compile_options(-std=c++11)

環境

ubuntu16.04
ROS kinetic

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?