Click here to Skip to main content
15,889,844 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello,
On compiling cplus plus file the compiler gives the error

"unable to open input file 'iostream'"

What I have tried:

put the file iostream in the same folder as dm.exe which is the bin folder still doesnt compiles
Posted
Updated 22-Feb-17 2:20am

1 solution

iostream is a C++ header file that should be installed by your compiler suite (usually in a sub directory of the compiler suite directory named include).

When compiling source files, the compiler will check specific directories to locate include files. These directories must be configured in the project and/or general settings.

I don't know the DM compiler but according to a quick web research there is a configuration file named sc.ini in the /dm/bin/ directory. This file should contain a list of pathes to be searched for include files (see also DMC - Digital Mars: sc.ini[^]).

The pathes may be also specified using an environment variable (see DMC - Digital Mars: Environment variables[^] )

Ensure that the directory containing the iostream file is listed in the INCLUDE section of the INI file or the INCLUDE environment variable.

If there is no iostream file in a sub directory of the compiler check the installation (it may be incomplete or broken).

For further information check the compiler documentation.
 
Share this answer
 
Comments
CPallini 22-Feb-17 9:01am    
5.

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