Hello,
I wonder if it is possible to use existing libraries compiled with Compaq Visual Fortran in a program compiled with Intel Fortran.
In at least one case, I ran into the problem that the default library dformt.lib, expected by my library, is not available in Intel Fortran.
So, that leaves me the choice to recompile everything or to ask if there is a way out on this forum.
Regards,
Arjen
I wonder if it is possible to use existing libraries compiled with Compaq Visual Fortran in a program compiled with Intel Fortran.
In at least one case, I ran into the problem that the default library dformt.lib, expected by my library, is not available in Intel Fortran.
So, that leaves me the choice to recompile everything or to ask if there is a way out on this forum.
Regards,
Arjen
連結已複製
3 回應
The only way out is to build the CVF library into a DLL, preferably one that is linked with the static CVF libraries. Then you can call the routines from Intel Fortran, though you can't share I/O nor allocatable or assumed-shape arrays across the two compilers. Recompiling all sources is the better option.
Youdo not need a dll if the library is a static library. To use the lib in the IDE, open your solution: Properties/Fortran/External Procedures/Calling Convention, and select CVF. On the command line the flag for this option is /iface:cvf
You must also have added the lib to your project if you are compiling from within the IDE.
(MAD/Steve, correct me if I am wrong about this, but I have successfully used precompiled netCDF libraries in this fashion)
