ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Apart from the two issues mentioned in the answers before you need to fix the error the Compiler complains about: multiple definitions of c. The Definition is in the Header i.e. it will bei defined twice, once For each cpp File including it.

You need to define int c; in the local scope of int sum(int a, int b) in File newnode_functions.Cpp.