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

problem with link at distribution

jvandeven
New Contributor I
523 Views
I am not a programmer by training, but have been using IVF to produce an application for a few years now. I recently upgraded to Intel Parellel Studio XE 2011 with VS 2010. Following the upgrade, it seems that my application no longer recognises DLL files that are stored in the same directory as the application. I guess I need to change my compiler settings, but - after significant testing - have been unable to identify which of these need to be altered. I include my current compiler settings here:

/nologo /O3 /Qparallel /Qopt-prefetch=3 /Qip /Qopt-matmul /arch:SSE3 /Qopenmp /fpscomp:logicals /Qopenmp-report0 /Qpar-report0 /Qvec-report0 /warn:declarations /warn:unused /real_size:64 /align:rec8byte /align:dcommons /fp:strict /fp:except /module:"x64\\COMPLETE" /object:"x64\\COMPLETE\\\\" /Fd"x64\\COMPLETE\\vc100.pdb" /gen-dep:"x64\\COMPLETE\\SIDD.dep" /ccdefault:none /check:none /libs:static /threads /Qmkl:parallel /c
LINKER:
/OUT:"C:\\MyFiles\\MODEL_LAB\\MODEL\\SIDD.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\\MyFiles\\MODEL_LAB\\MODEL" /MANIFEST /MANIFESTFILE:"C:\\MyFiles\\MODEL_LAB\\MODEL\\SIDD.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /IMPLIB:"C:\\MyFiles\\MODEL_LAB\\MODEL\\SIDD.lib" libiomp5md.lib taxes.lib excel.lib
The application runs fine on development machines, but on client machines returns the error:
"This application has failed to start because libiomp5md.dll was not found. Re-installing the application may fix this problem"
Many thanks for any help you could offer,
Justin.
0 Kudos
4 Replies
mecej4
Honored Contributor III
523 Views
The malfunction is only on the client machines. Do they have libiomp5md.dll installed, and available throught %PATH%?

This DLL is part of the Intel Fortran redistributables, which are downloadable from Intel. It is also installed in the "redist" subdirectory of your compiler installation on the development machine.

0 Kudos
jvandeven
New Contributor I
523 Views
I have been supplying libiomp5md.dll with the executable file that I have developed, saved in the same directory as the executable. Am I wrong in thinking that the file in which the executable is saved is automatically added to the path, and if so, how do I fix this?
Many thanks, Justin.
0 Kudos
mecej4
Honored Contributor III
523 Views
How does the user run you EXE, and is it located in the current path? Does your application load the DLL itself, or does it depend on the system to do that? Does the DLL have permissions set for execution by the user?
0 Kudos
jvandeven
New Contributor I
523 Views
The user calles the executable from an Excel macro, but I have found this issue prior to distribution, just by double clicking the exectuable from windows explorer.
I have been doing more testing, and think that the problem is due to incompatible library files - I was using Multithreaded, rather than Multithread DLL due to a conflict with the Matrix Multiply library. I have now corrected this (by suppressing the Matrix Multiply library, and enabling the Multithread DLL library), and the executable is now recognising DLLs that I put in its base directory. Strangely, I had no similar problem with earlier versions of the compiler.
0 Kudos
Reply