Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

DLL cannot be loaded on other machine

rinkeke
Beginner
956 Views
Hi,

I compiled a dll with the FORTRAN 11 compiler under visual studio 2005, using the IMSL 6 libraries which I linked statically. It compiles and the program works fine on my computer. However, on my other computer, on which VS 2005 and IMSL 6 are not installed, I get an error message that the dll cannot be loaded. Previously, I used MS Visual studio .net 2003, FORTRAN 8 and IMSL 5 and under that configuration a compiled dll worked fine on other machines. I've checked all the includes, library settings etc, but cannot find the cause of this problem. Any suggestions are very welcome.

Thanks, Rinke
0 Kudos
1 Solution
5 Replies
Steven_L_Intel1
Employee
956 Views
Standard advice - run Dependency Walker on the DLL to see what it depends on. Even if you're using the static IMSL, you'll be linked against the DLL form of the OpenMP run-time, libiomp5md.dll.
0 Kudos
rinkeke
Beginner
956 Views
Standard advice - run Dependency Walker on the DLL to see what it depends on. Even if you're using the static IMSL, you'll be linked against the DLL form of the OpenMP run-time, libiomp5md.dll.

Hi Steve,

Thanks, I ran DW and indeed I found that the link to libiomp5md.dll is missing. Do you know any way to get around that? I tried to put it in the additional dependencies list, but that gives fatal errors because of reading rights.

Rinke
0 Kudos
rinkeke
Beginner
956 Views
Standard advice - run Dependency Walker on the DLL to see what it depends on. Even if you're using the static IMSL, you'll be linked against the DLL form of the OpenMP run-time, libiomp5md.dll.

0 Kudos
Steven_L_Intel1
Employee
957 Views
0 Kudos
rinkeke
Beginner
956 Views
Thanks ! You make my day
0 Kudos
Reply