Hi Construct team,
I got this error after I run catkin_make:
/home/user/catkin_ws/src/cpp_course_repo/c_scripts/src/unit1_exercise.cpp:9:3: error: ‘RosbotClass’ was not declared in this scope
RosbotClass rosbot;
^
/home/user/catkin_ws/src/cpp_course_repo/c_scripts/src/unit1_exercise.cpp:10:3: error: ‘rosbot’ was not declared in this scope
rosbot.move();
^
Makefile:138: recipe for target ‘all’ failed
Invoking “make -j8 -l8” failed
Can you please help me out? Thank you so much!
Best,
Z
Did you jump or miss any step in the exercise?
To use the RosbotClass
, you should have #include
d it somewhere at the top of your program…
Can we see the contents of unit1_exercise.cpp
?
Hi Byodesegun,
I did miss one import in the code. Thank you so much for your help!
Best,
Z
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.