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

Intel Fortran 9.1 and CVF libraries

arjen_markus1
Beginner
628 Views
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 Kudos
3 Replies
Steven_L_Intel1
Employee
628 Views
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.
0 Kudos
detraceyb
Beginner
628 Views

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)

0 Kudos
Steven_L_Intel1
Employee
628 Views
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.
0 Kudos
Reply