Could not load FrontPanel DLL moving from MS VS to Gnu compiler

The code works fine with the CL MS compiler. Moving the code to gnu c++, it compiles, but fail to load the DLL.

For MS compiler I use: cl uni.cpp okFrontPanelDLL.obj

For Gnu compiler I use: c++ uni.cpp okFrontPanelDLL.cpp -o uni.exe

Am I missing something - like a library?

The okFrontPanel.dll needs to be located in the same directory as the executable’s working directory. Just like any other file opened with something like fopen(). If the app can’t find it, it can’t load it.

It is in the same directory. It worked before.

However, I realized the default MinGW is 32 bit.

It works ok with the 32b DLL.