C4652 C++ Compile Warning

Document ID : KB000027375
Last Modified Date : 14/02/2018
Show Technical Document Details


COMPILE : warning C4652: compiler option 'C++ Exception Handling Unwinding' inconsistent with precompiled header; current command-line option will override that defined in the precompiled header C:\Test\Gen\AA1F.CPP - Line 22

Line 22 in the source file corresponds to: #include "obwafx.h"


The C4652 error is caused by mixed versions of compiled objects that reside in the same build directory. For example, the obwafx.h file may have been created with Visual Studio 2005, and then Visual Studio 2005, SP1 was applied. Subsequent objects built into the same build directory may throw this error. We recommend rebuilding all objects with the new Visual Studio 2005, SP1 compiler version into a new directory.