MetaLang Compiler Codes??

 

Using the command line compiler, MetaLang.exe, to compile .mq4 files, it shows the following format:

1-2 ; warning/error code; file location; line#:column#; description of warning/error

My question is this: Where can I find a list of the warning/error codes for the compiler?

For instance:

2;88 - the 2 means error and 88 means "unbalanced right parenthesis"

2;89 - the 2 means error and 89 means "unbalanced left parenthesis"

1;39 - the 1 means warning and 39 means "unused function"

2;61 - the 2 means error and 61 means "defined name needed"

2;75 - the 2 means error and 75 means "variable not defined"

2;116 - the 2 means error and 116 means "function definition unexpected"

Obviously, this question can probably only be answered by someone who knows the compiler and/or has a list of compiler warning/error codes.

Anyone??

Thanks,

Scott

 
The larger numbers in your sample are the line numbers in the source.
 
phy wrote >>
The larger numbers in your sample are the line numbers in the source.

No, the line and column number come later. The first two numbers indicade whether it is a warning or error, followed by the warning/error code.

Here is a full example of the compiler output:

MetaQuotes Language 4 compiler version 4.00 build 210 (18 Sep 2007)
Copyright 2001-2007, MetaQuotes Software Corp.

2;116;C:\Program Files\Interbank FX Trader 4\experts\GBPCHF_IntensityEA.mq4;37:11;'(' - function definition unexpected

2 - This means it is an error

116 - This is the error code

C:\Program Files\Interbank FX Trader 4\experts\GBPCHF_IntensityEA.mq4 - This is the file location

37 - This is the line number of the error

11 - This is the column number of the error

'(' - function definition unexpected - This is the description

 
I see.