My C++ compiler showing error UNABLE TO OPEN IOSTREAM.H and IOSTREAM

10 pts.
Tags:
C
C compiler
Header files
IOstream
My c++ compiler showing error that UNABLE TO OPEN IOSTREAM.H #include<iostream.h> <---- error When I enter IOSTREAM it again shows error #include<iostream.h> <<------- error and so for other header files and also for COUT and CIN

Answer Wiki

Thanks. We'll let you know when a new response is added.

Your compiler needs to know where to look for the header files. How to configure the ‘include’ directories will be different depending on the compiler you are using.

CIN and COUT are not being recognized because they are defined in iostream.h which your compiler has not been able to include.

—————————–

i think you want to set envoirnment of your editer window
steps:
first: go in editor window
and open option popdown menu
and select directory command
then set path of include directory Example: c:\tc\include and save enviornment changes.

-Rakeshsen

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Medhashandilya
    My c++ compiler show error unable to open include file 'iostream'.
    10 pointsBadges:
    report
  • Subhendu Sen


    @Medhashandilya,

    Probably this could be because of the incorrect path to turbo c header files (assuming windows). While you writing the code and call iostream.h, compiler does not get that file, which is generally located with tc folder & the common location for header files is, c:/tc/include. At first, open the directory (or where you installed the program) & ensure there is include files like iostream.h. If it is there, make the path correct that the C compiler can find the same. Open turbo c/ c++ interface. Click on options from title bar. From given list, open option for directories. Now a directories window will open.In this window, you can see the path for include directories. Make sure the path is correct.

    84,160 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: