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

CVF conversion rebuild errors

jthull
Beginner
739 Views

In rebuilding a converted Compaq Visual Fortran project under IVF version 9.0 in Visual Studio .NET 2003 the following error(s) were encountered:

Error: If the actual argument is scalar, the corresponding dummy argument shall be scalar unless the actual argument is an element of an array that is not an assumed-shape or pointer array, or a substring of such an element. [LALPHA]

When the calling DLL had the subroutine parameter defined as

CHARACTER*80 LALPHA

and the called subroutinehad it parameter defined as

CHARACTER*1 LALPHA(80)

This had worked fine in CVF.

Is there any way to make this work in IVF without changing all of the defined parameters?

0 Kudos
1 Reply
Steven_L_Intel1
Employee
739 Views
You must have been using a somewhat older version of CVF. As of 6.6B, I think, that error was detected.

I suppose you can add, in the called subroutine:

!DEC$ ATTRIBUTES NO_ARG_CHECK :: LALPHA

and then the compiler will skip type and rank matching for that argument. But the better approach would be to fix the error in your code.
0 Kudos
Reply