Thanks for the replay, Is there any guidance how to use this precompiled library?
Oh, long story, thank you very much, I am gonna try it. Hope it works
(though I am wondering why MQL keeps making things more difficult in its new version.)
I tried this solution, It is smart but it won't work for me because I have many inter related mqh files, I cannot separate all of them.
Also, assuming you are using conditional compilation between MQL4 and MQL5, there could also be a big difference between the amount of code produced for MQL4 and that for MQL5, or that some part is convoluted or have some kind of compilation problems causing the issue, yet not being reported. An example would be missing braces or brackets but that are balanced, making the flow of the code strange but not report compilation errors. This is just a conjecture on my part.
EDIT: You could use a 3rd party preprocessor to create separate MQL4 and MQL5 source files, only for analysis, so you can compare them and see what the MetaEditor is actually processing and compiling.
If I put them together in one library then first of all, edition and debugging it would be a hard task. so many lines in one file. secondly that file compilation time will be taken long time again. then if I edit sth in that file again I have to compile it and it is gonna take about the same time.
I break the project into different modules of course, with 16 mqh file, each of them is responsible for one specific tasks, but they are interconnected. for example module 10 needs some function from module 8 and 2. module 8 uses some function from module 2 and 3 and so on, they are inter connected not entirely independent. I am not sure. Maybe I have to create them in a total independent blocks.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
When I am trying to compile my code in MQL5 it takes so long time. about 120 sec. the same code in MT4 complies in just a blink.
Can I do any thing to make the "Generating Code" process faster??