error: 'rpc' was not declared in this scope