vs2008中系统找不到指定路径
#include<iostream>
using namespace std;
int main()
{
cout<<"this is a c++ program "<<endl;
return 0;
}
1>------ 已启动生成: 项目: 好样, 配置: Debug Win32 ------
1>正在编译...
1>的.cpp
1>e:\程序\好样\好样\的.cpp(1) : warning C4627: “#include <iostream>”: 在查找预编译头使用时跳过
1> 将指令添加到“stdafx.h”或重新生成预编译头
1>e:\程序\好样\好样\的.cpp(8) : fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?
1>生成日志保存在“file://e:\程序\好样\好样\Debug\BuildLog.htm”
1>好样 - 1 个错误,1 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
求解 c++ iostream
[解决办法]
见工程时选择空的工程,不要“预编译头”,然后向工程中添加文件的方式,添加源文件。