FIX: LINK Error L1098 From DEF File INCLUDE Statement

Last reviewed: September 16, 1997
Article ID: Q92606
5.31.009 MS-DOS kbtool kberrmsg kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft LINK for MS-DOS, version 5.31.009

SYMPTOMS

When the Microsoft Linker (LINK) version 5.31.009 is used to link a an application using information from a module definition (DEF) file and the DEF file contains an INCLUDE directive of the following form

   INCLUDE basename.ext

LINK generates the following error message:

   fatal error L1098: cannot open include file 'basename'
   - No such file or directory

even though the file BASENAME.EXT exists.

CAUSE

LINK version 5.31.009, requires single quotation marks (') to delimit a file name that includes an extension. This requirement is not present in previous versions of LINK.

RESOLUTION

Place single quotation marks around the file name in the INCLUDE directive. For example, the following directive in a DEF file includes the BASENAME.EXT file:

      INCLUDE 'basename.ext'

STATUS

Microsoft has confirmed this to be a problem in LINK version 5.31.009. This problem was corrected in LINK version 5.5, distributed with Microsoft Visual C++ version 1.0 for Windows.


Additional reference words: 7.00 7.00a 5.30 5.3x
KBCategory: kbtool kberrmsg kbbuglist kbfixlist
KBSubcategory: LinkIss
Keywords : kb16bitonly
Solution Type : kbfix


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: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.