"Compilation Terminated" Error Message Upon Trying to Compile Code

I tried using the code presented in this lesson on how to compile a C++ code file. For some reason, I keep getting an error saying “compilation terminated”. I’m not sure why.

Hello @omarm ,

You are getting the compilation error because the g++ compiler is not able to resolve the dependencies (cannot find rosbot_control.h header file in this case).
For this unit1_exercise.cpp script you should compile it with catkin_make, as indicated in the notebook. With catkin_make, the dependencies are being already handled inside the CMakeLists.txt file.

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