This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
building error: ‘status’ is not a class, namespace, or enumeration #46
Closed
Description
When I build using cmake and make I get this error message. Any idea? Thanks in advance.
/home/gzhang8/course/UAV/code/gazebo-sitl/gzsitl/gzsitl_plugin.cc: In member function ‘void gazebo::GZSitlPlugin::OnUpdate()’:
/home/gzhang8/course/UAV/code/gazebo-sitl/gzsitl/gzsitl_plugin.cc:140:23: error: ‘status’ is not a class, namespace, or enumeration
if (status == status::STANDBY) {
^
/home/gzhang8/course/UAV/code/gazebo-sitl/gzsitl/gzsitl_plugin.cc:143:30: error: ‘status’ is not a class, namespace, or enumeration
} else if (status == status::ACTIVE) {
^
/home/gzhang8/course/UAV/code/gazebo-sitl/gzsitl/gzsitl_plugin.cc:173:23: error: ‘status’ is not a class, namespace, or enumeration
if (status != status::ACTIVE) {
^
/home/gzhang8/course/UAV/code/gazebo-sitl/gzsitl/gzsitl_plugin.cc:193:23: error: ‘status’ is not a class, namespace, or enumeration
if (status == status::ACTIVE) {
^
gzsitl/CMakeFiles/gzsitl_plugin.dir/build.make:62: recipe for target 'gzsitl/CMakeFiles/gzsitl_plugin.dir/gzsitl_plugin.cc.o' failed
make[2]: *** [gzsitl/CMakeFiles/gzsitl_plugin.dir/gzsitl_plugin.cc.o] Error 1
CMakeFiles/Makefile2:214: recipe for target 'gzsitl/CMakeFiles/gzsitl_plugin.dir/all' failed
make[1]: *** [gzsitl/CMakeFiles/gzsitl_plugin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Metadata
Metadata
Assignees
Labels
No labels