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++ - does dm support c++ standard header names?
Hi, I've just downloaded digital mars and have started to play around with it. So far I like what I see except that it seems that I have to use the old-style way of including headers. So, for example: #include <iostream.h> int main() { cout << "hello\n"; return 0; } compiles whereas: #include <iostream> using namespace std; int main() { cout << "hello\n"; return 0; } does not. The compiler says 'unable to open input file iostream'. I'm wondering if dm simply does not support the newer way of including files or if the problem lies in my setup. I'm using dm version 8.26n on windows 2000. Thanks in advance, Richard. Feb 13 2002
Richard Johnson wrote:Hi, I've just downloaded digital mars and have started to play around with it. So far I like what I see except that it seems that I have to use the old-style way of including headers. So, for example: #include <iostream.h> int main() { cout << "hello\n"; return 0; } compiles whereas: #include <iostream> using namespace std; int main() { cout << "hello\n"; return 0; } does not. The compiler says 'unable to open input file iostream'. Feb 13 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message news:3C6AFE12.22D13C70 smartsoft.cc...Richard Johnson wrote:I've just downloaded digital mars and have started to play around with Feb 14 2002
Surely it's the same file? As I understand it you can include iostream by typing "#include <iostream.h>" but the proper way of doing it is by typing "#include <iostream>". Whichever method you use you're still talking about the same header file aren't you?? Feb 14 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message news:3C6BE6AF.A6092700 smartsoft.cc...Surely it's the same file? As I understand it you can include iostream Feb 14 2002
"Richard Johnson" <rich REMOVETHISBITnorthernsky.uklinux.net> skrev i en meddelelse news:a4dji3$240h$1 digitaldaemon.com...does not. The compiler says 'unable to open input file iostream'. I'm wondering if dm simply does not support the newer way of including files Feb 14 2002
Yes, it can be true because of the fact that cout is NOT defined in the std namespace. Jan David Rasmussen wrote:"Richard Johnson" <rich REMOVETHISBITnorthernsky.uklinux.net> skrev i en meddelelse news:a4dji3$240h$1 digitaldaemon.com...does not. The compiler says 'unable to open input file iostream'. I'm wondering if dm simply does not support the newer way of including files Feb 14 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message news:3C6C4926.1CAD8B4D smartsoft.cc...Yes, it can be true because of the fact that cout is NOT defined in the Feb 15 2002
In the latest standard it is I think. Richard Johnson wrote:"Jan Knepper" <jan smartsoft.cc> wrote in message news:3C6C4926.1CAD8B4D smartsoft.cc...Yes, it can be true because of the fact that cout is NOT defined in the Feb 15 2002
"Jan Knepper" <jan smartsoft.cc> skrev i en meddelelse news:3C6C4926.1CAD8B4D smartsoft.cc...Yes, it can be true because of the fact that cout is NOT defined in the Feb 15 2002
It is not completely compliant YET with the latest ANSI/ISO standards... Jan David Rasmussen wrote:"Jan Knepper" <jan smartsoft.cc> skrev i en meddelelse news:3C6C4926.1CAD8B4D smartsoft.cc...Yes, it can be true because of the fact that cout is NOT defined in the Feb 15 2002
Which is 4 years old :) "Jan Knepper" <jan smartsoft.cc> skrev i en meddelelse news:3C6D2143.6ECFC52B smartsoft.cc...It is not completely compliant YET with the latest ANSI/ISO standards... Jan David Rasmussen wrote:"Jan Knepper" <jan smartsoft.cc> skrev i en meddelelse news:3C6C4926.1CAD8B4D smartsoft.cc...Yes, it can be true because of the fact that cout is NOT defined in Feb 16 2002
"David Rasmussen" <pinkfloydhomer yahoo.com> wrote in message news:a4hg6h$th4$1 digitaldaemon.com...The compiler doesn't seem to support namespaces either?! #include <iostream> int main() { std::cout << "Hello World!" << std::endl; return 0; } This produces errors, when compiled, even if iostream.h is used instead... Can this be true?? I thought this compiler was good! /David Feb 15 2002
Richard Johnson wrote:"David Rasmussen" <pinkfloydhomer yahoo.com> wrote in message news:a4hg6h$th4$1 digitaldaemon.com...The compiler doesn't seem to support namespaces either?! #include <iostream> int main() { std::cout << "Hello World!" << std::endl; return 0; } This produces errors, when compiled, even if iostream.h is used instead... Can this be true?? I thought this compiler was good! /David Feb 15 2002
|