Visual Studio Build Error C1853
search cancel

Visual Studio Build Error C1853

book

Article ID: 27042

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

During a first time build after a CA Plex upgrade or after applying a Visual Studio minor version update, you may receive one of the following compile errors:

Fatal error C1853: 'C:\Models60\Gen\Release\obj\obwafx.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

Precompiled header file  "obwafx.pch" is from a different version of the compiler 

Environment

CA Plex 7.x

Resolution

If you are upgrading to a major CA Plex release, then we recommend building all the objects into a new directory structure to eliminate this error.

Whenever there is some change in Visual Studio minor update which requires rebuild of PCH or other artifacts, there is a very high probability that the existing PCH may get invalidated and therefore PCH recreation is required.

If you have updated Visual Studio's minor version (i.e.  17.10.3.-> 17.10.6), delete the obwafx.pch file and rebuild.