VS 2010 error - cannot open file “iostream”

前端 未结 4 877
灰色年华
灰色年华 2020-12-31 02:10

I\'ve just migrated from VS2005 to VS2010 and it fails to compile a simple program.

#include 
using std::cout;
using std::endl;

int main()
{         


        
4条回答
  •  盖世英雄少女心
    2020-12-31 02:47

    The system could not find the Visual C++ compiler (CL.exe)...

    Things you should try:

    • Rerun the Visual Studio 2010 installer and make sure you selected to install Visual C++ tools for your platform (either x86 or amd64).

    • Run the installer in repair mode.

    If this does not solve your problem:

    • Try to run Visual Studio 2010 Uninstall Utility (by Microsoft) and then try installing VS 2010 again.

提交回复
热议问题