Visual C++ Concepts: Building a C/C++ ProgramCompiler Warning (level 1) C4627Error Message
”: skipped when looking for precompiled header use
While searching for the location where a precompiled header is used, the compiler encountered an #include directive for the include file. The compiler ignores the #include directive, but issues warning C4627 if the precompiled header does not already contain the include file.

解决方案:

1、去掉预编译头
项目->属性->配置属性->c/c++->预编译头->创建使用预编译头->不使用预编译头

2、将包含文件加到预编译头stdafx.h文件中

3、在每个.cpp中包含预编译头stdafx.h文件

注意:#include "stdafx.h" 一定要添加到cpp文件的第一行,不能放在如”#include <iostream>“行等的后面,否则还是会出现类似错误!

 

原文链接:http://blog.163.com/anitaxhq@126/blog/static/407238262012112193519198/

     http://jingyan.baidu.com/article/cbcede07cb81e302f40b4d83.html

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-11-20
  • 2021-10-10
相关资源
相似解决方案