请问: "怎样使用vs2010将指令添加到“StdAfx.h”或重新生成预编译头"????

在使用Visual Studio 2010进行编程时,遇到了编译错误,警告C4627提示需在'StdAfx.h'中添加#include指令,或者重新生成预编译头。同时,源文件0309aa.cpp因缺少#include 'StdAfx.h'导致致命错误C1010。为解决此问题,需要检查并修正预编译头设置。
摘要由CSDN通过智能技术生成

编程时出现了

 

Build started: Project: 0309aa, Configuration: Debug Win32 ------

1>Build started 2011/3/9 16:35:14.

1>initialize build status:

1>  Creating "Debug/0309aa.unsuccessfulbuild" because "AlwaysCreate" was specified.

1>ClCompile:

1>  All outputs are up-to-date.

1>  0309aa.cpp

1>g:/c文件&vc文件存储/0309aa/0309aa/0309aa.cpp(1): warning C4627: '#include <iostream>': skipped when looking for precompiled header use

1>          Add directive to 'StdAfx.h' or rebuild precompiled header

1>g:/c文件&vc文件存储/0309aa/0309aa/0309aa.cpp(15): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?

1>

1>Build FAILED.

1>

1>Time Elapsed 00:00:00.54

==========

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值