FIX: Linker Ignores Statements Following INCLUDE Statement

Last reviewed: September 18, 1997
Article ID: Q116315
5.50 5.60 MS-DOS kbtool kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft LINK for MS-DOS, versions 5.5 (included with Visual C++ for Windows, version 1.0) and 5.6 (included with Visual C++ for Windows, version 1.5)

SYMPTOMS

LINK ignores any statements in a .DEF file appearing after an INCLUDE line.

CAUSE

If the .DEF file specified in the INCLUDE statement contains an end-of-file character, LINK finishes processing the .DEF file and does not return to the parent .DEF file to continue processing.

RESOLUTION

To avoid the problem, do one of the following:

  • Upgrade to Visual C++ for Windows, version 1.5, because this problem was fixed with the version of LINK (5.6) provided with that product.

    -or-

  • Do not use INCLUDE statements in the .DEF file

    -or-

  • Make sure that the INCLUDE statement is the last line in the .DEF file.

STATUS

Microsoft has confirmed this to be a bug in Visual C++ for Windows, version 1.0. We are researching this problem and will post new information in the Microsoft Knowledge Base as soon as it becomes available.

This problem was corrected in Visual C++ for Windows, version 1.5.


Additional reference words: 5.50 5.60
KBCategory: kbtool 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 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.