Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

use dll in different folder

$
0
0

Hello,

 

I have a question about calling dll files.

In my project I have created an exe-file developed in Fortran and this program uses functions from  dll-files in different subfolders. I have tested to have all dll-files in the same folder as my exe-file and everything works w/o any problems so this is not the problem.

But I want to use the dlls in the subfolders. (I do not want to ask my users to copy a lot of dlls from subfolders if I can avoid it)

 

Example what I want:

  1. The dll sub.dll with visible function calc is placed in subfolder c:user\program\calc
  2. The program myProg.exe in folder c:user\program  needs to use function calc from sub.dll in folder c:user\program\calc

Is there a trick to do this in Fortran?   (in other language it has worked with load and unload commands)

Very thankful if anyone can help me!

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 3270


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>