I have a mixed language program that uses a fortran DLL that uses the MKL, everything works fine on the development machine but when I try to distribute it to another machine I get a module not found error when the program calls the DLL. Through a process of elimination I have tracked the problem down to the MKL. If I do not include the MKL in the link and remove all calls to MKL routines everything is fine. As soon as I add the MKL to the link, I get the module not found error even with no calls to the MKL routines. I have tried installing MKL onto the distribution machine, and adding all the redist MKL dlls to the installation folder but neither makes any difference.
I am using MKL 2019 update 4 on both machines.
Any ideas gratefully accepted.