An EXPORTS clause has been encountered in the program source at a non-global scope.
It is not allowed to have an EXPORTS clause anywhere but a global scope.
The solution is to ensure that your EXPORTS clause is at a global scope and textually follows all procedures named in the clause. As a general rule, EXPORTS clauses are best placed right before the source file's initialization code.