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

Accessing CVF compiled DLL using IVF compiled code

avinash_roshan
Beginner
386 Views

Hello;

I have one Fortran dll file compiled using Compaq Visual Compiler.

I need to write a code in IVF which has to access that dll. What I need to do. Will there be any problem. Since my code will be compiled using IVF compiler and dllhas been compiled using CVF compiler.

Thankyou in advance.

Regards

Avinash

0 Kudos
1 Reply
Steven_L_Intel1
Employee
386 Views
You will need to have the CVF run-time DLLs present on your system. You'll need to make sure that you are using the proper calling convention for calling the DLL - building your IVF application with /iface:cvf is an easy way to do that.

You will not be able to share I/O units with the CVF DLL and if you allocate data in your program you cannot deallocate it in the DLL, and vice versa.

One last thing - you cannot pass an array from IVF to a CVF routine that declares it as assumed-shape (:) as the descriptor layout is different.
0 Kudos
Reply