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

Mixing 32 and 64 bit DLLs

$
0
0

My problem is trying to run IVF-compiled 32 and 64 bit executables and/or DLLs on the same machine.

My project consists of an executable program and several DLLs, all compiled with IVF. Another 32 bit program starts the Fortran executable and calls various functions in the DLLs. The Fortran executable is compiled in 32 and 64 bit versions and the appropriate one is installed on the target machine. There's no advantage to making separate 32 and 64 bit DLLs, and in fact I've read elsewhere that problems might occur in calling functions in a 64 bit DLL from a 32 bit program. So on a 64 bit system I have a 64 bit Fortran executable and several 32 bit Fortran DLLs. The problem I'm encountering is that the required redistributable DLLs, for example mkl_rt.dll, come in 32 and 64 bit versions with the same name, and some are used by both the 32 bit DLLs and 64 bit executable. I can't figure out how to install both versions so that the executable and DLLs will call the appropriate ones. I could create subdirectories for the redistributable DLLs, but is there a way to tell the program DLLs where to find the correct redistributables? Or is it possible to rename one set of redistributable DLLs and tell the program executable and DLLs to use them instead of the defaults?

Thanks!


Viewing all articles
Browse latest Browse all 3270

Trending Articles



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