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

System.DllNotFoundException: Unable to load...

Ryan_Smith
Beginner
1,519 Views
I am attempting to call a Fortran function I created from an Excel Spreadsheet I created. The entire project works beautifully on my machine that has Visual Studio 2008 and all of its support files installed. When I try to install and run the project on another machine that does not have VS2008, I get the following error message when my Intel Visual Fortran DLL is called (GL1_2010.DLL is the name of my Fortran DLL):

Unable to load DLL 'GL1_2010.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I have copied the DLL to the System32 directory, changed the path within the calling code to a directory that I create, and everything else that I know of to try to get past this error. I'm out of ideas. Has anyone else run into this problem and gotten it fixed? Any help or guidance is much appreciated. Thank you.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,519 Views

Your DLL is linked to other DLLs which need to be present. I'll suggest that if your DLL is to be called from Excel, the best solution is to rebuild it so that it links with the static libraries. In the Fortran project, go to the Fortran > Libraries property page and set the Run-Time Library property to "Multithreaded", then rebuild.

Otherwise you will need to install both the Intel Fortran and Microsoft Visual C++ 2008 redistributables on the target system.
0 Kudos
Ryan_Smith
Beginner
1,519 Views

I ran Dependency Walker on my DLL. It indicated that "IESHIMS.DLL" was missing. I have no idea what this file does or why it is called, but when I copied it to my system32 directory I no longer got the error message I was getting. I don't get it. Thank you for your quick response.
0 Kudos
Steven_L_Intel1
Employee
1,519 Views

That's interesting, since that DLL will often show up as missing in Dependency Walker without ill effects. It is somehow related to MS Internet Explorer.
0 Kudos
Reply