E2038 Cannot declare or define 'identifier' here: wrong namespace (C++)

From RAD Studio