Microsoft KB Archive/31577

= PRB: L2029 &quot;Unresolved External&quot; Errors Linking FORTRAN App =

Article ID: 31577

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 4.0
 * Microsoft FORTRAN Compiler 4.01
 * Microsoft FORTRAN Compiler 4.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN Compiler 4.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN PowerStation 1.0 Standard Edition
 * Microsoft Fortran PowerStation 1.0a for MS-DOS

-



This article was previously published under Q31577



SYMPTOMS
During the process of linking an application, the linker generates a number of error messages of the following form:

error L2029: '_name' unresolved external



CAUSE
There are three main causes for this error:


 * The FORTRAN libraries were built with C compatibility support and the C libraries are not linked with the application. The C- compatible FORTRAN libraries do not contain the routines common to both C and FORTRAN. -or-


 * The version of the linker is not correct. -or-


 * A terminate-and-stay-resident (TSR) program interferes with the linking process.



RESOLUTION
The corresponding resolutions are as follows:


 * Link the application with both the C libraries and FORTRAN libraries.
 * Ensure that the latest version of the linker is installed.
 * Modify the AUTOEXEC.BAT file to remove all unnecessary TSR programs.

Additional query words: 1.00 nofpsnt 4.00 4.01 4.10 5.00 5.10

Keywords: KB31577

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.