- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page