KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q66055: Unexpected DOS Error: 14 Generated by Using /INC

Article: Q66055
Product(s): See article
Version(s): 5.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | s_quickc s_c | mspl13_basic
Last Modified: 24-OCT-1990

Programs linked with the /INC (Prepare for Incremental Link) switch
cause the following error if the program is executed using the
Microsoft Windows version 3.00 Run command:

   Unexpected DOS error: 14.

The Run command is located on the File menu in both the Windows
Program Manager and the File Manager. If the program is run from a
prompt in real DOS or in a DOS session of Windows 3.00, it executes
properly.

While this seems like a problem with the Microsoft Linker, Windows 3.0
is actually at fault here. The use of the /INC switch causes the
linker to create a segmented executable. When Windows attempts to run
this .exe, it fails to recognize that it is a full screen application
(ie: not a windows app) and subsequently tries to execute it as a
Windows application. This bug has been entered into the Windows bug
database and should be fixed in a future release.

Note: This may appear to be a problem with QuickC and/or C version
6.00 if the incremental link option is turned on. In fact, it is a
linking issue, not a compiler issue.

To workaround this problem, turn off the /INC switch.

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.

Copyright Microsoft Corporation 1986-2002.