Fatal Error C1852

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Fatal Error C1852.

filename' is not a valid precompiled header file

The file is not a precompiled header.

To fix by checking the following possible causes

  1. Invalid file specified with /Yu or #pragma hdrstop.

  2. The compiler assumes a file extension of .pch if you do not specify otherwise.

Show: