Microsoft KB Archive/10630

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:13, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q10630 to Microsoft KB Archive/10630 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Common Block Declared in More than One Module

PSS ID Number: Q10630 Article last modified on 10- 7-1988

3.20 XENIX

Problem: The FORTRAN compiler is having problems with COMMON blocks. When a COMMON block is listed in two or more files that are linked together, a link error is given. The two files below were compiled separately. When linked together, the following error message results: SYMBOL DEFINED MORE THAN ONCE: “NAG” in file tl.o (A_)" The two examples are as follows: EXAMPLE CODE: (1) t0.f common /nag/var var = 0. call a() write(,) var stop end EXAMPLE CODE: (2) t1.f subroutine a() common /nag/var var = 1. return end

Response: Microsoft has confirmed this to be a problem in Version 3.20. This problem in the XENIX linker has been corrected. The new linker will be supplied with the compiler for XENIX Version 3.30, Pascal, and FORTRAN.