VC C2859错误解决方案

来源:互联网 发布:破解游戏的软件 编辑:程序博客网 时间:2024/06/05 04:31

遇到


error C2859: x:\XXX\vc60.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
mschart.cpp


解决

1.http://www.cppblog.com/sunicdavy/archive/2010/05/21/116037.html

Configuration Properties | C/C++  | Output Files里的Program Database File Name改为$(IntDir)\$(ProjectName).pdb


2. 可是我的不行! 我的做法 是! 看本项目的 stdafx.h

要是 没有 #ifndef #define  #endif 的话! 加一个上去 就通过了!

原创粉丝点击