MT4 IDE looking for MQL5 include directory (Metaeditor for MT4 v4 build 625) - bug?

 

Loading Metaeditor to make a few changes to an existing MT4/MQL4 EA, hit compile and what previously compiled fine, now gives me #include errors.

It is now looking in the MQL5\Include\xxx path -- MQL5? There is an MQL4 directory, but never a MQL5 one.

Anyone else experiencing this?

This is opposite to this https://www.mql5.com/en/forum/14955

I have reinstalled MT4 but with no luck :(

I have also installed MT4 from MetqQuaotes (with no Broker Branding) and no luck :(

can't open "C:\Program Files (x86)\MetaTrader 4\MQL5\include\hash.mqh"

Solution: https://forum.mql4.com/62191#938281


 
#include <yourfile.mqh>

Write it like that and then put your include file inside

MQL4 > Include

folder ...

 
winden:

Loading Metaeditor to make a few changes to an existing MT4/MQL4 EA, hit compile and what previously compiled fine, now gives me #include errors.

It is now looking in the MQL5\Include\xxx path -- MQL5? There is an MQL4 directory, but never a MQL5 one.

Anyone else experiencing this?

This is opposite to this https://www.mql5.com/en/forum/14955

I have reinstalled MT4 but with no luck :(

I have also installed MT4 from MetqQuaotes (with no Broker Branding) and no luck :(

can't open "C:\Program Files (x86)\MetaTrader 4\MQL5\include\hash.mqh"

I suggest you to try build 628 : Build 628: Fixes for Compatibility with Symantec Antivirus
 

Right, for any one who got into the same trouble as me...

I created a symlink MQL5 that points to MQL4 folder (http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/). This works just fine.

c:\Program Files (x86)\MetaTrader - Alpari UK>mklink /D MQL5 MQL4
symbolic link created for MQL5 <<===>> MQL4
 
angevoyageur:
I suggest you to try build 628 : Build 628: Fixes for Compatibility with Symantec Antivirus

negative, does not resolve this problem.
 
deysmacro:

Write it like that and then put your include file inside

MQL4 > Include

folder ...


thanks, very helpful ;|
 
winden:

negative, does not resolve this problem.

Can you post some code to reproduce your issue ?
 
angevoyageur:

Can you post some code to reproduce your issue ?

example.mqh

#include <stdlib.mqh>
hit Compile button.
 
winden:

example.mqh

hit Compile button.

Full address ...

C:\Program Files (x86)\MetaTrader - Alpari UK\MQL4\Include
 
angevoyageur:

Can you post some code to reproduce your issue ?

as per above this bug manifests itself only when I edit and try to compile mqh file. If we talk about editing/compiling mq4 files it works fine.

Another drawback of MetaEditor that comes with MetaTrader 4 is the following. When I edit mqh files it assumes (incorrectly IMHO) that it deals with mqh of MT5 standard. So when I press F1 it opens MQL5 reference help, which could be confusing as that not all functions from MQL5 are available at MQL4.

 
winden:

as per above this bug manifests itself only when I edit and try to compile mqh file. If we talk about editing/compiling mq4 files it works fine.

Another drawback of MetaEditor that comes with MetaTrader 4 is the following. When I edit mqh files it assumes (incorrectly IMHO) that it deals with mqh of MT5 standard. So when I press F1 it opens MQL5 reference help, which could be confusing as that not all functions from MQL5 are available at MQL4.

I can't reproduce this behaviour.