- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
1 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite