VS 2010错误 - 无法打开文件“ iostream”
我刚刚从VS2005迁移到VS2010,它无法编译一个简单的程序。
#include <iostream>
using std::cout;
using std::endl;
int main()
{
cout << "Hello Visual Studio 2010 :)" << endl;
}
错误 -
1 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified.
2 IntelliSense: cannot open source file "iostream"
3 IntelliSense: name followed by '::' must be a class or namespace name
4 IntelliSense: name followed by '::' must be a class or namespace name
5 IntelliSense: identifier "cout" is undefined
6 IntelliSense: identifier "endl" is undefined
PS:我对使用VS2010完全不熟悉,但在VS 2005中有经验。
以下是我在“用户属性表”下从VS2005添加到VS2010的目录列表
可执行 -
$(VCInstallDir)bin; $(VSInstallDir)Common7Toolsbin; $(VSInstallDir)Common7tools; $(VSInstallDir)Common7ide; $(VSInstallDir); $(VSInstallDir)SDKv2.0bin
包括 -
$(VCInstallDir)include; $(VCInstallDir)atlmfcinclude; $(FrameworkSDKDir)include
图书馆 -
$(VCInstallDir)lib; $(VCInstallDir)atlmfclib; $(VCInstallDir)atlmfclibi386; $(FrameworkSDKDir)lib; $(VSInstallDir); $(VSInstallDir)lib
资源 -
$(VCInstallDir)atlmfcsrcmfc; $(VCInstallDir)atlmfcsrcmfcm; $(VCInstallDir)atlmfcsrcatl; $(VCInstallDir)crtsrc
没有找到相关结果
已邀请:
4 个回复
赐黄
蜗仓馈
搜洼挂时
用户属性表是
其中
在Win7下
。
青董据零