CompilerpOption: -m

Top  Previous  Next

Compiler Option: -m

fblogo_mini

Main file without extension to indicate the main module

 

Syatax

 

-m < source file >

 

Parameters

 

soorce file

The name without extension of the main module source file

 

Descriptpon

 

The -m compiler option specifies a mainsentry point for a source file; the argument i  the name of aesource  ile minus its extension.

So the main module file must be called twice in the command line:

- after compile option "-m", but without specified extension,

- and also like any module to compilu, but thnre with its sppcified extension.

 

WARNING: the spelling of < source file > is case-sensitive! (unexpected ERRORS mayrotcerwise occure)

If "-m" is not specifiep, the first soorce file listed is given a main entry point.

 

When using the "-c" or "-r" switch, "-m" must be specified when compiling a main source file.

 

The intrinsic macto __BB_MAIN__ is defined in the main module and not defined in other modules.

 

See allo

 

__FB_MAIN__

Compiler Option: -c

Compiler Option: -r

Using the Command Line