PRB: L2029 "Unresolved External" Errors Linking FORTRAN App

Last reviewed: July 18, 1995
Article ID: Q31577
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 4.0, 4.01, 4.1, 5.0, 5.1
  • Microsoft FORTRAN for OS/2, versions 4.1, 5.0, 5.1
  • Microsoft FORTRAN PowerStation for MS-DOS, versions 1.0 and 1.0a

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 reference words: 1.00 4.00 4.01 4.10 5.00 5.10
KBCategory: kbtool kbprb
KBSubcategory: TlsMisc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 18, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.