precompiled header file is from a previous version of the compiler RRS feed

  • Question


    Hi, im fairly new to programming im a 3d artist myself but had to take role of programmer for group project, and im trying to get a game engine running but visual studio is giving me some jip... heres my error when compiling


    1>------ Build started: Project: EmptyGameEngineApp, Configuration: Debug Win32 ------



    1>c:\documents and settings\jm\desktop\emptygameengineappsrc_dec07\enginetestapp\enginetestapp.cpp(16) : fatal error C1853: 'Debug\EngineTestApp.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)

    1>Build log was saved at "file://c:\Documents and Settings\JM\Desktop\EmptyGameEngineAppSrc_Dec07\EngineTestApp\Debug\BuildLog.htm"

    1>EmptyGameEngineApp - 1 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    i have tried some solutions on the web but they all seem to suggest changing the options to not use precompiled errors but this then brings up more errors, i was just wondering if anyone new how to resolve this issue without changing the options to not use precompiled errors?




    Saturday, March 29, 2008 1:00 PM


All replies

  • A "Rebuild All" (See Build menu) should work. Or delete the pch file.

    Monday, March 31, 2008 6:38 AM
  • Wow, this is the easiest solution I've ever come across! Thanks for the answer Simple Samples!
    Wednesday, July 2, 2008 2:31 PM
  • Thanks, worked for me as well.
    Monday, February 28, 2011 2:35 PM
  • StdAfx.h for Novices

    This article is meant for those programmers who are only getting started with the Visual Studio environment and trying to compile their C++ projects under it. Everything looks strange and complicated in an unfamiliar environment, and novices are especially irritated by the stdafx.h file that causes strange errors during compilation. Pretty often it all ends in them diligently turning off all precompiled headers in every project. We wrote this article to help Visual Studio newcomers to figure it all out.

    Tuesday, July 15, 2014 7:35 AM
  • Yap Bro Its Working!!!!!
    Monday, October 28, 2019 11:41 PM