Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "Unexpected precompiled header error" mean?

I was trying to build a simple solution involving a Windows and a Console application. After using the wizard to generate the code skeleton for the projects, I didn't add any code and just built the generated code. In both cases I got the same error:

1>c:\c\winpr\winpr\winpr.cpp(4) : fatal error C1859: 'Debug\winpr.pch' unexpected precompiled header error, simply rerunning the compiler might fix this problem

What is wrong, any thoughts?

like image 702
vico Avatar asked Aug 07 '12 21:08

vico


3 Answers

There is a fix for Visual C++ 2008 SP1 compiler error C1859. You may download it here.

For details see this.

like image 56
Jacob Seleznev Avatar answered Oct 07 '22 17:10

Jacob Seleznev


We had something similar at work all of a sudden, one day. Our problem was down to this

A simple PC restart done it for me anyway.

like image 39
Science_Fiction Avatar answered Oct 07 '22 16:10

Science_Fiction


The link provided in the answer above is no longer available.

I was getting the same error and in my case the problem was due to a 'Windows Update' that required a restart (which I avoided the restart and kept getting this problem). But after the reboot the error was fixed.

like image 45
Sia Avatar answered Oct 07 '22 16:10

Sia