Remote Compiling of Expert with Includes with mql64.exe

 

Hello,

I have problems using the command line compilers mql64.exe and mql.exe as per this article: https://www.metatrader5.com/en/metaeditor/help/development/compile

My expert has includes as follow:

#include <Object.mqh>
#include <Arrays\ArrayObj.mqh>

It compiles well in the Editor. However when I'm trying to use remote compiling, I'm receiving the following errors:

mql64.exe pp.mq5 > output.txt


MQL4/MQL5 Compiler x64 build 1037 (25 Dec 2014)
Copyright 2001-2014, MetaQuotes Software Corp.
pp.mq5 : information: Compiling 'pp.mq5'
pp.mq5(2840,11) : error 106: can't open "C:\Users\Miroslav\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\MQL5\include\Object.mqh" include file
pp.mq5(2841,11) : error 106: can't open "C:\Users\Miroslav\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\MQL5\include\Arrays\ArrayObj.mqh" include file
pp.mq5(2886,29) : error 128: 'CObject' - struct undefined
pp.mq5(2889,4) : error 116: 'CArrayObj' - declaration without type

The problem is in the prerequisites path: \MQL5\Experts\MQL5\

The following variant returns the same error:

mql64.exe pp.mq5 /i:C:\Users\Miroslav\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5 > output.txt
 

I managed to run it properly from C:\Users\Miroslav\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075 folder.

I'll make further tests from other directory.