#include <yourfile.mqh>
Write it like that and then put your include file inside
MQL4 > Include
folder ...
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"
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
I suggest you to try build 628 : Build 628: Fixes for Compatibility with Symantec Antivirus
negative, does not resolve this problem.
Write it like that and then put your include file inside
MQL4 > Include
folder ...
thanks, very helpful ;|
negative, does not resolve this problem.
Can you post some code to reproduce your issue ?
Can you post some code to reproduce your issue ?
example.mqh
#include <stdlib.mqh>
hit Compile button.
example.mqh
hit Compile button.Full address ...
C:\Program Files (x86)\MetaTrader - Alpari UK\MQL4\Include
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.
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.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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