An error occurred while incremental (C1073) compilation while compiling an external library

I need to build an external library using DirectX from the VS2008 project. I converted it to a VS2012 project, but the project does not compile.

I get the following error in many files:

> fatal error C1073: Internal error involving incremental compilation (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p0io.c', line 865) 

What is the meaning of this error?

And what is a p0io.c file? I do not have a file with this name (and not with f:// )

+4
source share
2 answers

You see the result generated by the __FILE__ macro inside the MSVC compiler. Drive F: was the drive used on the build machine in Redmond to store the source code. dd means DevDiv, a division of Microsoft's Servers and Tools division that is responsible for developer products such as MSVC. p0 in the file name gives a hint in which the compiler crashed, p0 - a preprocessor pass. Therefore, there may be some kind of problem with macros. Although io suggests problems with the file.

There is no code to view, so I can only recommend a documented workaround for C1073. Disable incremental compilation using Project + Properties, C / C ++, General, Debug Information Format. Change it from the default / ZI to / Zi and rebuild your project. Delete any .pch file in the build directory manually to be sure. We hope you now get error messages that tell you why your code made the compiler go on the nose. Fix those, and with some luck, you can turn on / ZI again.

If you still have problems and you are reproducing this problem using VS2012, you can file an error report at connect.microsoft.com. They will need a copy of your project to reproduce the problem. If you cannot wait or use the old version, contact Microsoft Support.

+4
source

For VS2010, Disable configuration properties | C / C ++ | Code generation | "minimal overhaul" avoids the error.

+9
source

All Articles