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

Intel Fortran 9.1 and CVF libraries

arjen_markus1
初學者
630 檢視
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

0 積分
3 回應
Steven_L_Intel1
630 檢視
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.
detraceyb
初學者
630 檢視

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)

Steven_L_Intel1
630 檢視
Not if it's a CVF-compiled library. These cannot be linked with Intel Visual Fortran applications because of language support library conflicts. If it was a C++ library, fine.
回覆