PRB: F3606, F3607 Errors Porting FORTRAN Code From DEC VAX (49467)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.01
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
- Microsoft FORTRAN PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
- Microsoft Fortran Powerstation 32 for Windows NT 4.0
This article was previously published under Q49467 SYMPTOMS
During the process of compiling an application, the compiler generates the
following messages:
FORTRAN 5.x
F3606: formal argument 1 : type mismatch
F3607: formal argument 1 : length mismatch
FORTRAN PowerStation
F4016: formal argument 1 : type mismatch
F4017: formal argument 1 : length mismatch
FORTRAN PowerStation 32, version 4.0
warning FOR4639: inconsistent data type for argument 1 in call
to procedure
warning FOR4227: argument (number 1) in reference to procedure
from procedure main incorrect: has the wrong data type
CAUSE
In a FORTRAN application developed in the DEC VAX environment, it is not
necessary to be consistent when passing actual arguments to a subprogram.
However, the Microsoft FORTRAN compiler detects the inconsistency and
generates these errors.
RESOLUTION
The errors are recoverable errors; the compiler produces an OBJ file after
reporting the errors. You can either choose to ignore the errors or to
modify the source code to be consistent when it passes formal arguments.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kberrmsg kbLangFortran KB49467 |
---|
|