# Got error in Exercise 1.1 after catkin\_make

**URL:** <https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020>\
**Category:** C++ For Robotics\
**Created:** [June 24, 2024, 6:31am UTC](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020 "2024-06-24T06:31:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuwanzi](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/y/e56c9b/32.png) [@Yuwanzi](https://get-help.theconstruct.ai/u/Yuwanzi)\
**Post date:** [June 24, 2024, 6:31am UTC](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020/1 "2024-06-24T06:31:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [June 24, 2024, 10:43am UTC](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020/2 "2024-06-24T10:43:28Z")

</div>

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`?

---

<div class="post-metadata">

**Author:** ![Yuwanzi](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/y/e56c9b/32.png) [@Yuwanzi](https://get-help.theconstruct.ai/u/Yuwanzi)\
**Post date:** [June 24, 2024, 3:47pm UTC](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020/3 "2024-06-24T15:47:30Z")

</div>

Hi Byodesegun,

I did miss one import in the code. Thank you so much for your help!

Best,  
Z

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [June 29, 2024, 3:48pm UTC](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020/4 "2024-06-29T15:48:05Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
