致命错误C1852:.pch不是有效的预编译头文件 [英] fatal error C1852: .pch is not a valid precompiled header file

查看:543
本文介绍了致命错误C1852:.pch不是有效的预编译头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我看过网上的所有文章,但似乎没有解决我的问题。



有人帮我解决这个问题。



我正在使用调试模式,vs2010,.net 4框架。

<项目属性中的
CLR在C ++中的一般CLR中打开 - >一般所有.cpp文件在预编译的听众设置中都有使用(/ yu)stdafx.cpp有/ yc(创建)与clr on。

Hi,

I have seen all the articles on web, but nothing seems to resolve my issue.

Someone plz help me out on this.

I am using debug mode, vs2010, .net 4 framework.

in project properties CLR is on in general CLR in on in C++->general all .cpp files are having use (/yu) in precompiled hearder settings stdafx.cpp has /yc (create) with clr on .

推荐答案

请参阅此文档页面 [ ^ ]。


每当我收到该消息时,我只是做一个Rebuild-All并且它消失了,这是在MFC项目中但可能仍然可以工作。
Whenever I get that message I simply do a Rebuild-All and it goes away, this is in MFC projects but will probably still work.


这篇关于致命错误C1852:.pch不是有效的预编译头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆