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

Application has failed to start because .dll was not found

fbalderasintel
518 Views
This sounds easy enough to fix but has been very perplexing. All symbols resolve. I explicitlysetthe dependency path in the calling program, and the "Addional Depency" lib is also correct. When I run the calling program, it starts, but then complains about not finding the DLL. I cannot be more explicit. So I placed the DLL in the same directory as the .exe and it runs there OK. Just wondering if there is some option or property setting that does not allow the exe to find it if its not in its own directory. I've tried both relative and absolute paths.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
518 Views

The dependency path is of limited usefulness and I suggest not using it. DLLs should be in one of the standard places Windows will look for them, including the current directory, the directory containing the EXE, the Windows folder, the Windows System folder and folders mentioned in PATH.
0 Kudos
fbalderasintel
518 Views

The dependency path is of limited usefulness and I suggest not using it. DLLs should be in one of the standard places Windows will look for them, including the current directory, the directory containing the EXE, the Windows folder, the Windows System folder and folders mentioned in PATH.

OK I did not know about the limited usefulness of the dependency path. So I should make the output path
of the DLL be the path of the EXE so I dont have to copy it after each rebuild. When its installed on user PC it will be there anyway. Got it, thanks.
0 Kudos
Reply