.NET Zone is brought to you in partnership with:

Jonathan creates software, mostly with C#, XAML, and HTML5/JS. He was awarded the Microsoft MVP in the "Client Application Development section in January 2011 Jon is a DZone MVB and is not an employee of DZone and has posted 23 posts at DZone. You can read more from them at their website. View Full User Profile

C++/CX : How to Fix the “Precompiled Header File is From a Previous Version of the Compiler” Error

04.02.2013
| 3394 views |
  • submit to reddit

This is just a quick post about this error I sometime have when I change the targeted platform of my C++/Cx project: “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)“.
When I read this the first time, I didn’t have a clue of what the error could be. In fact…

.. I think this is a Visual Studio issue and you only have to clean the project once to make everything works on the next build.

Some will maybe think it’s not worth a blog post but I tried a lot of things (and wasted a lost of time – including not watching the last walking dead !!!) before to find out it was this easy. I hope this post will save you this time.

Have fun !

PS: the error code is “C1853″

Published at DZone with permission of Jon Antoine, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)