Cannot load 'Custom.dll' [126] on MacOs Terminal New comment Paolo Besana 2025.01.14 19:53 Hello Forum, I am using the MT5 version for MacOs (M3 chip). I created a custom .dll to import into an EA, but I keep getting "Cannot load 'Custom.dll' [126] " error message. I also tested the .dll on my windows computer and everything is working fine. I both tried to locate the file into MQL5/Libraries and C:/windows/syswow64 but seems that the EA cannot find it. Just for reference I will add below both Test.dll and Test.mq5 codes. #import "Test.dll" int ReturnTwo(); #import void OnStart(){ int res = ReturnTwo(); Print(res); } // ReturnTwo.cpp #include "pch.h" // Precompiled header file for Visual Studio #include <windows.h> // Exported function declaration extern "C" __declspec(dllexport) int ReturnTwo() { return 2; } cannot load library 'test1.dll' (error 126) What is this? Error 126 are not documented. Cannot load DLL file when used inside the Expert Advisor Calling DLL linked to another DLL from Custom Indicator, Is this possible? New comment
Hello Forum,
I am using the MT5 version for MacOs (M3 chip).
Just for reference I will add below both Test.dll and Test.mq5 codes.