VS 2010 error - cannot open file “iostream”

前端 未结 4 839
灰色年华
灰色年华 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:43

    I have no idea why this worked but I was getting this error and installing Visual Studio Power Commands solved this for me. This extension adds the Configuration Properties -> VC++ Directories that allows you to directly modify the ExecutableDirectories macro, it might have something to do with that.

提交回复
热议问题