Download MetaTrader 5
To add comments, please log in or register
Take active part in the life of the community. Improve your rating!
winden
34
winden 2014.03.28 23:59 

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


SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.29 00:37  
#include <yourfile.mqh>

Write it like that and then put your include file inside

MQL4 > Include

folder ...

Alain Verleyen
Moderator
30292
Alain Verleyen 2014.03.29 09:20  
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
winden
34
winden 2014.03.29 09:21  

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
winden
34
winden 2014.03.29 09:27  
angevoyageur:
I suggest you to try build 628 : Build 628: Fixes for Compatibility with Symantec Antivirus

negative, does not resolve this problem.
winden
34
winden 2014.03.29 09:28  
deysmacro:

Write it like that and then put your include file inside

MQL4 > Include

folder ...


thanks, very helpful ;|
Alain Verleyen
Moderator
30292
Alain Verleyen 2014.03.29 09:35  
winden:

negative, does not resolve this problem.

Can you post some code to reproduce your issue ?
winden
34
winden 2014.03.29 09:42  
angevoyageur:

Can you post some code to reproduce your issue ?

example.mqh

#include <stdlib.mqh>
hit Compile button.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.29 13:56  
winden:

example.mqh

hit Compile button.

Full address ...

C:\Program Files (x86)\MetaTrader - Alpari UK\MQL4\Include
winden
34
winden 2014.03.29 22:23  
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.

Alain Verleyen
Moderator
30292
Alain Verleyen 2014.03.29 23:46  
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.
/ /12
To add comments, please log in or register