The information in this article applies to:
SUMMARYThe use of Hollerith constants outside of a FORMAT specifier is not part of the FORTRAN 77 specification. Any use of Hollerith constants in an argument list is undocumented and unsupported. Using Hollerith can cause the following compiler and linker errors: In Microsoft FORTRAN PowerStation, the error generated by the linker is LNK4516. MORE INFORMATION
When Hollerith constants are used in the argument list of a function or
subroutine call, the size of the string is not passed. To the compiler,
this looks like references to a function or subroutine with one of the
arguments missing. To the linker, this looks like a reference to a
different function or subroutine.
To generate the F2608 and F2624 errors, combine A.FOR and B.FOR into one
file and compile it:
To generate LNK4016, build A.FOR, B.FOR, and either C.FOR or D.FOR:
To create a working program that uses both definitions of "TEST", build all
four files together:
Note that this produces a LNK4006 warning that refers to the undecorated
symbol "_TEST". This name is not used by the program, and therefore the
warning can be ignored.
Executing A.EXE produces: Test Quoted: Big TestNo specific compiler options are required for any of the samples. Sample Code A.FOR
Sample Code B.FOR
Sample Code C.FOR
Sample Code D.FOR
Additional query words: kbinf 1.00 4.00
Keywords : kberrmsg |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |