The problem is understanding what a include file is and what a library is.
The compiler "snatches" the used parts from the .mqh file and compiles an executable that will work in the absence of the .mqh file.
The library must be present on all computers that will be using a program that refers to the library. This is very inconvenient and few people use it, I do not know them.
I recommend to forget about the libraries and to understand the included files.
Well, you can argue about who is more comfortable using what!
The problem is understanding what a include file is and what a library is.
The compiler "snatches" the used parts from the .mqh file and compiles an executable that will work in the absence of the .mqh file.
The library must be present on all computers that will be using a program that refers to the library. This is very inconvenient and few people use it, I do not know.
I recommend you to forget about the libraries and deal with the include files.
This is exactly what we are talking about.
I have provided files for this purpose.
It's not a DLL, it's an .MQ4(.EX4) file where the frequently used functions are stored.
The problem is that these functions in the EA body work without any problems,
but when you transfer them to a file connected through INCLUDE, you get the error described above.
Начиная с билда 600 язык программирования MQL4 полностью переработан и достиг уровня MQL5 - теперь писать торговых роботов на MQL4/MQL5 можно в единой среде разработке MetaEditor и используя единые стиль, библиотеки и инструменты отладки. MQL4 пользуется заслуженной популярностью среди разработчиков автоматических торговых систем благодаря...
#property library//+++++++++++++++++++++#property strict//+++++++++++++++++++++//=========================int calc (int a,int b)
{
int c = a + b;
return(c);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The problem is understanding what a include file is and what a library is.
The compiler "snatches" the used parts from the .mqh file and compiles an executable that will work in the absence of the .mqh file.
The library must be present on all computers that will be using a program that refers to the library. This is very inconvenient and few people use it, I do not know them.
I recommend to forget about the libraries and to understand the included files.
The problem is understanding what a include file is and what a library is.
The compiler "snatches" the used parts from the .mqh file and compiles an executable that will work in the absence of the .mqh file.
The library must be present on all computers that will be using a program that refers to the library. This is very inconvenient and few people use it, I do not know.
I recommend you to forget about the libraries and deal with the include files.
This is exactly what we are talking about.
I have provided files for this purpose.
It's not a DLL, it's an .MQ4(.EX4) file where the frequently used functions are stored.
The problem is that these functions in the EA body work without any problems,
but when you transfer them to a file connected through INCLUDE, you get the error described above.
I do not see any reason for that.
That's exactly what we're talking about.
I have provided files for this purpose.
This is not a DLL, it is an .MQ4(.EX4) file where the frequently used functions are stored.
The problem is that these functions in the EA body work without any problems,
but when you transfer them to a file connected through INCLUDE, you get the error described above.
I do not see any reason for that.
I'm sorry, are you kidding me?
I highlighted the line on purpose what does it tell you?!!!!
I'm sorry, are you kidding me?
I highlighted the line on purpose what does it tell you?!!!!
Instructing the compiler to apply a special strict error-checking mode
Instructing the compiler to apply a special strict error-checking regime
What does this imply?
Instructing the compiler to apply a special strict error checking mode
Above I gave the direct linkhttps://docs.mql4.com/ru/mql4changes search for export
If you don't know how to use the search, this is how you can find!!!!
Same here!!!
Now do you see where your mistake lies?Same here!!!
Now do you see where your mistake lies?Alas, I don't get it...
Please tell me...
Alas, I don't get it...
Please tell me.
If you mean the#property library property
I've got it checked...
Without it, the library file doesn't even compileI'm going to smoke so I don't write too harshly and try to explain to you what #property strict is.