Difference between revisions of "Microsoft KB Archive/102159"

From BetaArchive Wiki
m (Text replacement - ">" to ">")
m (Text replacement - "<" to "<")
 
Line 23: Line 23:
 
== SYMPTOMS ==
 
== SYMPTOMS ==
  
When the compiler command line includes the /Fp&lt;file>.pch option switch to specify the name of a pre-compiled header file and the command line does not include the /Yc or /Yu option, the compiler generates the following message:
+
When the compiler command line includes the /Fp<file>.pch option switch to specify the name of a pre-compiled header file and the command line does not include the /Yc or /Yu option, the compiler generates the following message:
  
 
<blockquote><div class="ERRORMESSAGE">
 
<blockquote><div class="ERRORMESSAGE">
  
fatal error C1083: Cannot open compiler intermediate file: &lt;tmpfile>
+
fatal error C1083: Cannot open compiler intermediate file: <tmpfile>
  
 
</div></blockquote>
 
</div></blockquote>
Line 59: Line 59:
 
  */  
 
  */  
  
#include &lt;stdio.h>
+
#include <stdio.h>
  
 
void main()
 
void main()

Latest revision as of 09:07, 20 July 2020

BUG: C1083, "Compiler Cannot Open Intermediate File" Error

Q102159



The information in this article applies to:


  • The C/C++ Compiler (CL.EXE), included with:
    • Microsoft Visual C++, versions 1.0, 1.5





SYMPTOMS

When the compiler command line includes the /Fp<file>.pch option switch to specify the name of a pre-compiled header file and the command line does not include the /Yc or /Yu option, the compiler generates the following message:

fatal error C1083: Cannot open compiler intermediate file: <tmpfile>



RESOLUTION

To work around this error, specify the /Yc compiler option switch to create a pre-compiled header file.



STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed above. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does not occur in Microsoft C/C++ 32-bit compiler version 8.0, included with Visual C++ 32-bit Edition version 1.0.



MORE INFORMATION

The following code example demonstrates this problem.

Sample Code - TEST.C

/*
 * Compiler options needed: /Fptest.pch to demonstrate error
 */ 

#include <stdio.h>

void main()
{
   printf("Hello, world\n");
} 

Additional query words: 1.00 1.50 8.00 8.00c

Keywords : kb16bitonly
Issue type : kbbug
Technology : kbVCsearch kbAudDeveloper kbCVCComp


Last Reviewed: May 8, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.