Microsoft KB Archive/92606

From BetaArchive Wiki

FIX: LINK Error L1098 From DEF File INCLUDE Statement

Q92606



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 query words: 7.00 7.00a 5.30 5.3x

Keywords : kb16bitonly
Issue type :
Technology : kbAudDeveloper kbZNotKeyword3 kbLINKSearch kbLINK53109DOS


Last Reviewed: October 29, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.