precompiled header file is from a previous version of the compiler
Question
Saturday, March 29, 2008 1:00 PM
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>Compiling...
1>EngineTestApp.cpp
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?
Thanks
Jon
All replies (5)
Monday, March 31, 2008 6:38 AM âś…Answered | 9 votes
A "Rebuild All" (See Build menu) should work. Or delete the pch file.
Wednesday, July 2, 2008 2:31 PM
Wow, this is the easiest solution I've ever come across! Thanks for the answer Simple Samples!
Monday, February 28, 2011 2:35 PM
Thanks, worked for me as well.
Tuesday, July 15, 2014 7:35 AM
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.
Monday, October 28, 2019 11:41 PM
Yap Bro Its Working!!!!!