Using Include option in MT4 compiler

 

I'm writing subroutine functions, then importing then into the main program code using the Include instruction, however the compiler never finds the imported code because a huge numeric number that is part of the path for the include instruction.

Is there a solution for this problem? any suggestion would be appreciated.


Regards Toni

 
I suppose you are using absolute paths, try using relative paths to specify your include file.

 

When you #include "filename" the compiles look in the directory of the includer and in the MQL4\Include.

No path is required.