Jump to page: 1 2
Thread overview
cannot open iostream?
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Nic Tiger
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Jan Knepper
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Jan Knepper
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Jan Knepper
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Jan Knepper
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Jan Knepper
Jun 25, 2002
Andrew Edwards
Jun 25, 2002
Jan Knepper
June 25, 2002
Can someone please help me with this? I compiling a program with the Digital mars compiler and ran into the following error message:

e:\programming\source_code\C++\Lab>sc lab6
Fatal error: unable to open input file 'iostream'
--- errorlevel 1

I'm positive the file is there but am unsure of how to configure the compiler to see it!

June 25, 2002
1) 'iostream' should be 'iostream.h' (if you mean standard header file
located in dm/include)
2) You may check file sc.ini in DM\Bin
     there should be INCLUDE="%@P%\..\include"...
3) If all this does not help, type 'set' in cmdline and look for INCLUDE
environment variables. Once had trouble when Builder's include prevented DM
from working.

Nic Tiger.

"Andrew Edwards" <crxace13@comcast.net> wrote in message news:af97o2$n47$1@digitaldaemon.com...
> Can someone please help me with this? I compiling a program with the Digital mars compiler and ran into the following error message:
>
> e:\programming\source_code\C++\Lab>sc lab6
> Fatal error: unable to open input file 'iostream'
> --- errorlevel 1
>
> I'm positive the file is there but am unsure of how to configure the compiler to see it!
>


June 25, 2002
"Nic Tiger" <nictiger@pt.comcor.ru> wrote in message
news:af9b9e$14to$1@digitaldaemon.com...
| 1) 'iostream' should be 'iostream.h' (if you mean standard header file
| located in dm/include)

Yes. it is my understanding that the C++ Standard is to use <iostream> when including preprocessor directives vice <iostream.h>, unless referring to programmer defined header files, in which case a "xxxxxx.h" format is used. I this not the case in DMDC++?  I have, nevertheless, attempted both approaches and have failed miserably in both cases.

| 2) You may check file sc.ini in DM\Bin
|      there should be INCLUDE="%@P%\..\include"...

the current INCLUDE statement in sc.ini reads as follows:

INCLUDE="%@P%\..\include";"%@P%\..\mfc\include";"%@P%\stl";%INCLUDE%

| 3) If all this does not help, type 'set' in cmdline and look for INCLUDE

my current path reads as follows:

E:\dmd\bin;E:\dmd\include;E:\dm\bin;E:\dm\include;

| environment variables. Once had trouble when Builder's include prevented
DM
| from working.
|
| Nic Tiger.

None of these settings rectify the aforementioned problem.

Andrew

June 25, 2002
Andrew Edwards wrote:

> | 3) If all this does not help, type 'set' in cmdline and look for INCLUDE
>
> my current path reads as follows:
>
> E:\dmd\bin;E:\dmd\include;E:\dm\bin;E:\dm\include;

path?
set INCLUDE=e:\dm\include;

Jan


June 25, 2002
"Jan Knepper" <jan@smartsoft.cc> wrote in message
news:3D186770.112719B8@smartsoft.cc...
| Andrew Edwards wrote:
|
| > | 3) If all this does not help, type 'set' in cmdline and look for
INCLUDE
| >
| > my current path reads as follows:
| >
| > E:\dmd\bin;E:\dmd\include;E:\dm\bin;E:\dm\include;
|
| path?
| set INCLUDE=e:\dm\include;
|
| Jan

No that doesn't work either.
Andrew

June 25, 2002
Where is the file iosteam.h?
Which folder/directory
Jan



Andrew Edwards wrote:

> "Jan Knepper" <jan@smartsoft.cc> wrote in message
> news:3D186770.112719B8@smartsoft.cc...
> | Andrew Edwards wrote:
> |
> | > | 3) If all this does not help, type 'set' in cmdline and look for
> INCLUDE
> | >
> | > my current path reads as follows:
> | >
> | > E:\dmd\bin;E:\dmd\include;E:\dm\bin;E:\dm\include;
> |
> | path?
> | set INCLUDE=e:\dm\include;
> |
> | Jan
>
> No that doesn't work either.
> Andrew

June 25, 2002
e:\dm\include

"Jan Knepper" <jan@smartsoft.cc> wrote in message
news:3D186EBB.1CC4EF90@smartsoft.cc...
| Where is the file iosteam.h?
| Which folder/directory
| Jan
|
|
|
| Andrew Edwards wrote:
|
| > "Jan Knepper" <jan@smartsoft.cc> wrote in message
| > news:3D186770.112719B8@smartsoft.cc...
| > | Andrew Edwards wrote:
| > |
| > | > | 3) If all this does not help, type 'set' in cmdline and look for
| > INCLUDE
| > | >
| > | > my current path reads as follows:
| > | >
| > | > E:\dmd\bin;E:\dmd\include;E:\dm\bin;E:\dm\include;
| > |
| > | path?
| > | set INCLUDE=e:\dm\include;
| > |
| > | Jan
| >
| > No that doesn't work either.
| > Andrew
|

June 25, 2002
Andrew Edwards wrote:

> e:\dm\include

Try to use the compiler as
sc -Ie:\dm\include <file>.cpp

Jan



June 25, 2002
That does it Jan. Thanks.

Just a couple more questions! I noticed that my program wouldn't compile when I used

using namespace std;

is it safe to assume that it is not supported in DMC++?
Is this also the reason for having to provide the extension on all includes
(e.g. #include <iomanip.h> vice #include <iomanip>)?

"Jan Knepper" <jan@smartsoft.cc> wrote in message
news:3D189337.D8F480A7@smartsoft.cc...
| Andrew Edwards wrote:
|
| > e:\dm\include
|
| Try to use the compiler as
| sc -Ie:\dm\include <file>.cpp
|
| Jan
|
|
|

June 25, 2002
Andrew Edwards wrote:

> That does it Jan. Thanks.

Still means one of the other things have not quite been setup correctly.

> Just a couple more questions! I noticed that my program wouldn't compile when I used
>
> using namespace std;
>
> is it safe to assume that it is not supported in DMC++?

That's correct.

> Is this also the reason for having to provide the extension on all includes (e.g. #include <iomanip.h> vice #include <iomanip>)?

Correct.

Jan


« First   ‹ Prev
1 2