Robotics StackExchange | Archived questions

Catkin_make does not compile

Hey guys,

I have a problem with the ROS compiler. I code in C++ and pretty often the compiler does not apply small changes I did in the code. E.g. if I change some parts of a string. So if I change

cmd_stg="Hello World";

to cmd_stg=string2; the compiler simply ignores the changes.

I have already tried `catkin_make --force-cmake´

That's very annoying. Do You have any advise?

Asked by Dermitri on 2017-03-06 05:33:37 UTC

Comments

Which 'compiler' are you refering to? "ROS" basically uses CMake, which only orchestrates actual compilers and linkers through Makefiles. Can you tell us what you are doing exactly? Your CMakeLists.txt, which commands, etc.

Asked by gvdhoorn on 2017-03-06 11:44:05 UTC

Actually I don't know. I just installed kinetic and did't do any changes. So it should be the standard compiler. I only use catkin_make. Usually I add "add_executable" and "use_target_libraries" after I have created a new .cpp.

There are no error messages.

Asked by Dermitri on 2017-03-08 02:33:39 UTC

Please include your CMakeLists.txt into your question text. Also describe your workspace layout and how you created it. Without that information we cannot help you.

Asked by gvdhoorn on 2017-03-08 04:00:18 UTC

Answers