Cannot load 'Custom.dll' [126] on MacOs Terminal

 

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;
}