Reputation: 65
is there a way to set the external dll searching path when a Fortran project is deployed(Leave the PATH strategy aside)? Assume that we have a Main.exe here, and it depend on an external dll called Depend.dll. Generally, we can put Main.exe and Depend.dll together under the same folder to make it work, but in another situation, if Depend.dll is under a folder called External, and External and Main.exe are put together, is there a solution that Main.exe can find the dll?
Upvotes: 0
Views: 225
Reputation: 9057
As discussed, for Windows:
PATH
variable.In case one wants to only set the path to the dll
temporarily:
.bat
file with:
set SAVED_PATH=%PATH%
set PATH=<path to dll>;%PATH%
<run executable>
set PATH=%SAVED_PATH%
Upvotes: 2