Module declaration not permitted.

#2140   Compile-time error

Module declaration not permitted.

Additional Information

Module declarations can only occur at the beginning of a module file.

Explanation

A module declaration was found somewhere other than the first line of OmniMark code in a file imported as a module. The most common cause of this error is specifying a module file after the -s command-line option instead of a main program. Modules can only be used by importing them into the main program.