ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.