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

LoadLibrary fails, or the linking fails.

nuke
Beginner
488 Views
With "Default" and "C, REFERENCE", I can build the DLL (with or without calling the IMSL routines), but LoadLibrary is failing. In my C code, when it fails I try and make sure that the file exists and can be read, and that appears to work just fine, so C recognizes that there's a file there, but not a DLL. Using any of the STDCALL options, I can't link in the IMSL libraries.

Using STDCALL, and commenting out the IMSL, it'll load the DLL.

Does this make ANY sense?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
488 Views
In Ifort, the IMSL routines have C calling convention. When you use LoadLibrary, any DLLs you depend on have to be in one of the default locations (such as on PATH). Did you build against the IMSL DLLs? If so, the path to those needs to be on PATH.
0 Kudos
Reply