Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hii,
I am getting an error while compiling a simple program as unable to open include file 'iostream.h'
and 'unable to open include file conio.h'.
please help me out as soon as possible...
Posted
Updated 13-Jun-21 1:48am

Hi,

Try:
C++
#include <iostream>

The file name isn't iostream.h, but iostream
And if you don't use Windows, you can't include conio.h, because conio.h is Windows-specific.
 
Share this answer
 
v2
Comments
Dev Gupta from Mumbai,India 7-Apr-13 7:13am    
i am also getting an error as 'unable to create output file...'
what to do?
You didn't say what version of the compiler you were using, but at one point (on Windows), the file to include was "iostream.h", then a compiler change allowed either "iostream.h" or "iostream", then a second compiler update required "iostream" and disallowed "iostream.h". I don't recall the exact version changes but I believe they occurred around VS6 or thereabouts for the Visual Studio compiler.

I suspect that you have some really old source code (ie. 2002 or older), and just need to update it a bit.

Solution #1 fills in these details...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900