2022.04.25 04:52:35.720 2009.03.16 00:00:00 Cannot find 'yellowBungee' in 'amrBungees.ex4'
Your code and structure looks correct, so I'd double check the existence of yellowBungee (along with correct spelling and return type) in amrBungees.mq4. Also, make sure to compile the mq4 file.
Hello Everyone,
I am traying to create my own library and referring to it from my EA code
under MQL4\Libraries I have my amrBungees.mq4 and the ex4 which include my functions
under \MQL4\Include I have amrBungees.mqh
In my EA code at the top I have this line of code
Later in my EA code I call one of the library functions as follows
the putValue is just function which how text on the chart
When I run my EA I got the following errors:
2022.04.25 04:52:35.720 2009.03.16 00:00:00 Cannot find 'yellowBungee' in 'amrBungees.ex4'
2022.04.25 04:52:35.720 2009.03.16 00:00:00 My EA,M1: unresolved import function call
Any help will be appreciated
Thank you
Did you use the export postmodifier in the library file at the function declaration?
Your code and structure looks correct, so I'd double check the existence of yellowBungee (along with correct spelling and return type) in amrBungees.mq4. Also, make sure to compile the mq4 file.
As Laszlo said, I wasn't using export postmodifier, this was my problem,
Thank you
Perhaps you should read the manual. Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference
Constant | Type | Description |
---|---|---|
library | A library; no start function is assigned, functions with the export modifier can be imported in other MQL4-programs |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Everyone,
I am traying to create my own library and referring to it from my EA code
under MQL4\Libraries I have my amrBungees.mq4 and the ex4 which include my functions
under \MQL4\Include I have amrBungees.mqh
In my EA code at the top I have this line of code
#include <amrBungees.mqh>
Later in my EA code I call one of the library functions as follows
the putValue is just function which how text on the chart
When I run my EA I got the following errors:
2022.04.25 04:52:35.720 2009.03.16 00:00:00 Cannot find 'yellowBungee' in 'amrBungees.ex4'
2022.04.25 04:52:35.720 2009.03.16 00:00:00 My EA,M1: unresolved import function call
Any help will be appreciated
Thank you