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

Unplug your device, check which comports are available in the IDE. Plug your device in, does a new comport show up?