首页 > 其他 > 详细

skipped when looking for precompiled header

时间:2015-04-21 18:38:08      阅读:213      评论:0      收藏:0      [点我收藏+]


一般出现:warning C4627: ‘#include "../stdafx.h"‘: skipped when looking for precompiled header

这个错误时,只需在源文件开头加上 #include "stdafx.h"即可。


但有时候,源文件是放在与stdafx.h不同目录下的,直接按以上做法是不可行的。需要将stdafx.h的路径包含进项目工程里,在按上面的做法即可。

将stdafx.h所在路径添加进项目工程的方法如下:

 add "$(ProjectDir)" (or wherever the stdafx.h is) to the list of directories under:

 Project->Properties->Configuration Propertes->C/C++->General->Additional Include Directories.


本文出自 “whatever957” 博客,请务必保留此出处http://whatever957.blog.51cto.com/6835003/1636505

skipped when looking for precompiled header

原文:http://whatever957.blog.51cto.com/6835003/1636505

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!