Abnormal behavior, after MT5 build 2170, compiling files outside MQL5 directory.

 

Dear,


Before MT5 build 2170 I compiled files outside MQL5 directory normally, then I was doing my develop work in a external directory as my git repository. Unfortunately, now (after build 2170) when I try compile a file outside MQL5 directory I get several crazy erros.


Sample code:

#include <Arrays\ArrayDouble.mqh>

class TimeProvider
{
};

Sample errors:

'class' - unexpected token, probably type is missing?   Object.mqh      11      1
'CObject' - semicolon expected  			Object.mqh      11      7
'CObject' - unexpected token, probably type is missing? Object.mqh      15      4
'*' - semicolon expected        			Object.mqh      15      21
'public' - unexpected token, probably type is missing?  Object.mqh      17      1
':' - semicolon expected        			Object.mqh      17      7
'm_next' - unexpected token, probably type is missing?  Object.mqh      18      50
'm_next' - class type expected  			Object.mqh      18      50
'}' - semicolon expected        			Object.mqh      18      92


The same code compiles normally when is it placed inside a MQL5 directory (or subdirectory).


Anybody know the reason or workaround? Or, how can I downgrade to previous version?


Tks!

 
Having the same error also on build 2170
 
fernandovm: Anybody know the reason or workaround? Or, how can I downgrade to previous version?
  1. No
  2. Create a hard link from the source file to the appropriate MQL5 subdirectory and compile there. You need the compiled file there to run anyway. (fsutil hardlink create new old)