방금 VS2005에서 VS2005로 마이그레이션했으며 간단한 프로그램을 컴파일하지 못했습니다.VS 2010 오류 - 파일 "iostream"을 열 수 없습니다.
#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)Common7\Tools\bin; $(VSInstallDir)Common7\tools; $(VSInstallDir)Common7\ide; $(VSInstallDir); $(VSInstallDir)\SDK\v2.0\bin
은 다음과 같습니다 -
$(VCInstallDir)include; $(VCInstallDir)atlmfc\include; $(FrameworkSDKDir)include
도서관 -
$(VCInstallDir)lib; $(VCInstallDir)atlmfc\lib; $(VCInstallDir)atlmfc\lib\i386; $(FrameworkSDKDir)lib; $(VSInstallDir); $(VSInstallDir)lib
소스 -
0 1,231,
경로에 기본 헤더 파일의 경로가 포함되어 있습니까? – DumbCoder
네,'CL'은 링커입니다. 컴파일러가 엉망이라고 알 수 없다면. 이것은 실제로 프로그래밍 (SO) 질문보다 sysadmin (Serverfault.com) 질문에 더 많은 것을 만듭니다. –
@ T.E.D .: 아니오,'CL.exe'는 Visual Studio의 컴파일러이며 링커의 이름은'LINK.exe'입니다. –