iostream not found. Visual Studio 2015


  • I downloaded VS 2015 for class so that I could work on my code at home. I downloaded with out any problems, but when I transferred code and tried to run the code it said <iostream> not found. What do I do so that I can use iostream? Any suggestions?
    Sunday, February 7, 2016 12:58 AM


All replies

  • Have a look at this issue with VS2010:

    There are link to msdn to check on what's included in your compilation here (/ShowIncludes) and here (/P preprocess) to start debugging what's missing.

    You could also come back here and tell us what's files are included and the statements in your compiler ($(VCInstallDir)include; $(VCInstallDir)atlmfc\include; $(WindowsSdkDir)include; $(FrameworkSDKDir)\include; and $(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib)

    Maybe it's just a broken VS install after all and some files are missing or just directives....

    Cyrille Precetti <br/>

    Sunday, February 7, 2016 10:51 AM
  • If Cyrille's suggestions don't work for you,

    Two things:

    1. Have you tried to repair your VS 2015 installation? If not, please try that.

    2. As your issue is specific to C++, you may want to ask the C++ gurus here:

    Sunday, February 7, 2016 3:49 PM
  • I am having this same issue.

    What is the solution?

    Saturday, January 7, 2017 4:52 PM