KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q35140: Error C1015 "Can’t Open Include File" with MEP

Article: Q35140
Product(s): See article
Version(s): 1.00
Operating System(s): OS/2
Keyword(s): ENDUSER | S_C buglist1.00 | mspl13_basic
Last Modified: 2-NOV-1988

The example program below generates the following error:

Error C1015 "Can't open include file"

The program must be compiled with one of the output-file switches
(such as /Fc) or through a make file to generate this error.

The include file os2.h opens two other include files: os2def.h and
bse.h. The bse.h include file, in turn, opens three other include
files: bsedos.h, bsesub.h, and bseerr.h.

Microsoft has confirmed this to be a problem in Version 1.00. We are
researching this problem and will post new information as it becomes
available.

The compiler attempts to open the last include file and generates the
C1015 error. The total file count at this point is 15, as follows:

 1. stdin
 2. stdout
 3. stdprn
 4. stderror
 5. stdaux
 6. MEP
 7. source
 8. listing file
 9. os2.h
10. os2 def.h
11. bse.h
12. bsedos.h
13. bsesub.h
14. bseerr.h
15. tmp file

The following sample code demonstrates the problem:

#define INCL_BASE
#include <os2.h>

void main (void)
void main (void)
{
}

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.