|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - cannot open iostream?
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! Jun 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...
Jun 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 Jun 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; Jun 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 Jun 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 Jun 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 | Jun 25 2002
Andrew Edwards wrote:e:\dm\include Jun 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 | | | Jun 25 2002
Andrew Edwards wrote:That does it Jan. Thanks. Jun 25 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message news:3D18BEE7.8EAA075D smartsoft.cc... | Andrew Edwards wrote: | | > That does it Jan. Thanks. | | Still means one of the other things have not quite been setup correctly. :-( that's not good! Thought I followed the intructions in the readme file to the letter! Is there anything I should EXPLICITY check or modify before I run into other problems? Are there any known *bugs* with running this compiler on a WinXP system, if so where might I look to find additional information on such topics? Andrew Jun 25 2002
Andrew Edwards wrote:"Jan Knepper" <jan smartsoft.cc> wrote in message news:3D18BEE7.8EAA075D smartsoft.cc... | Andrew Edwards wrote: | | > That does it Jan. Thanks. | | Still means one of the other things have not quite been setup correctly. :-( that's not good! Thought I followed the intructions in the readme file to the letter! Is there anything I should EXPLICITY check or modify before I run into other problems? Jun 25 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message
news:3D18CF2A.A109E724 smartsoft.cc...
|
| Well if this
| INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\stl";%INCLUDE%
| is in your sc.ini in e:\dm\bin and the compiler (sc.exe) is in the same
| directory something is wrong.
| It should have found the include files.
I agree, but am not sure what the problem is and, since I spent two days
trying to get this and several compilers to work after BC++ v5.5 gave up on
me, I'm inclined to accept and be happy with it. Anyhoo DMC++ is way
faster than BC++! Except for having to reconfigure my source to operate at
school, I'd just assume I've landed in heaven! *Again* Just hope I don't
get too comfortable too soon!
Because:
*- DMD Rocks!!!*
Leave two cheers for Compiler Walter!
If you build it! They will come.
Andrew!
Jun 25 2002
Andrew Edwards wrote:I agree, but am not sure what the problem is and, since I spent two days trying to get this and several compilers to work after BC++ v5.5 gave up on me, I'm inclined to accept and be happy with it. Jun 25 2002
|