Exit status 1 'calculateSum' was not declared in this scope

What do you mean by that? When you followed the instructions provided by Idahowalker, was COM3 the new prot that showed up after plugging in the Arduino board?