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