预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反)

来源:互联网 发布:ubuntu rm rf 编辑:程序博客网 时间:2024/06/08 13:20

当你编译VC工程时,发现这个出错,怎么办呢?


fatal error C1853: “..\temp\Debug\caipalD.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反)


其实出现这种情况是混合了C和C++的文件编译的工程,并且使用了预编译头的方式。

解决这个问题,要么禁用预编译头的方式,要么选择禁用某个文件的预编译头的方式。

下面就来禁用其中一个文件的方式:


接着打开窗口:


把预编译选项修改为:



这样再重新编译,就OK了。

1. RPG游戏从入门到精通

http://edu.csdn.net/course/detail/5246

2. WiX安装工具的使用
http://edu.csdn.net/course/detail/5207

3. 俄罗斯方块游戏开发
http://edu.csdn.net/course/detail/5110
4. boost库入门基础
http://edu.csdn.net/course/detail/5029
5.Arduino入门基础
http://edu.csdn.net/course/detail/4931
6.Unity5.x游戏基础入门
http://edu.csdn.net/course/detail/4810
7. TensorFlow API攻略
http://edu.csdn.net/course/detail/4495
8. TensorFlow入门基本教程
http://edu.csdn.net/course/detail/4369
9. C++标准模板库从入门到精通 
http://edu.csdn.net/course/detail/3324
10.跟老菜鸟学C++
http://edu.csdn.net/course/detail/2901
11. 跟老菜鸟学python
http://edu.csdn.net/course/detail/2592
12. 在VC2015里学会使用tinyxml库
http://edu.csdn.net/course/detail/2590
13. 在Windows下SVN的版本管理与实战 
http://edu.csdn.net/course/detail/2579
14.Visual Studio 2015开发C++程序的基本使用 
http://edu.csdn.net/course/detail/2570
15.在VC2015里使用protobuf协议
http://edu.csdn.net/course/detail/2582
16.在VC2015里学会使用MySQL数据库
http://edu.csdn.net/course/detail/2672


阅读全文
0 0
原创粉丝点击