c++ - does dm support c++ standard header names?
- Richard Johnson (21/21) Feb 13 2002 Hi,
- Jan Knepper (4/24) Feb 13 2002 No, as far as I know the newer files are missing...
- Richard Johnson (9/24) Feb 14 2002 it.
- Jan Knepper (3/7) Feb 14 2002 AFAIK yes.
- Richard Johnson (10/17) Feb 14 2002 by
- David Rasmussen (14/19) Feb 14 2002 or
- Jan Knepper (4/28) Feb 14 2002 Yes, it can be true because of the fact that cout is NOT defined in the ...
- Richard Johnson (5/8) Feb 15 2002 std
- Jan Knepper (2/12) Feb 15 2002
- David Rasmussen (8/11) Feb 15 2002 std
- Jan Knepper (3/16) Feb 15 2002 It is not completely compliant YET with the latest ANSI/ISO standards...
- David Rasmussen (5/23) Feb 16 2002 Which is 4 years old :)
- Richard Johnson (7/17) Feb 15 2002 I think the compiler does support namespaces (in the sense that you can
- Jan Knepper (4/27) Feb 15 2002 Correct.
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'.That's because that file does not yet exist in the package!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.No, as far as I know the newer files are missing... Jan
Feb 13 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message news:3C6AFE12.22D13C70 smartsoft.cc...Richard Johnson wrote:it.I've just downloaded digital mars and have started to play around withiostream'.So far I like what I see except that it seems that I have to use the old-style way of including headers. #include <iostream> using namespace std; int main() { cout << "hello\n"; return 0; } does not compile. The compiler says 'unable to open input fileThat's because that file does not yet exist in the package! No, as far as I know the newer files are missing...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?? Richard.
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??AFAIK yes. iostream could just #include <iostream.h>... Jan
Feb 14 2002
"Jan Knepper" <jan smartsoft.cc> wrote in message news:3C6BE6AF.A6092700 smartsoft.cc...bySurely it's the same file? As I understand it you can include iostreamtypingtyping "#include <iostream.h>" but the proper way of doing it is byabout"#include <iostream>". Whichever method you use you're still talkingActually, I've just created an 'iostream' that does just that ;o) However, I've just realised this still doesn't give me the 'std' namespace - but that's too much like hardwork to sort out right now so maybe I'll forget about namespaces for now... Richard.the same header file aren't you??AFAIK yes. iostream could just #include <iostream.h>... Jan
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 filesorif the problem lies in my setup. I'm using dm version 8.26n on windows2000.Thanks in advance, Richard.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 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 filesorif the problem lies in my setup. I'm using dm version 8.26n on windows2000.Thanks in advance, Richard.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 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 thestdnamespace. JanIt's supposed to be defined in the std namespace though isn't it? Richard.
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 thestdnamespace. JanIt's supposed to be defined in the std namespace though isn't it? Richard.
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 thestdnamespace. JanSo this compiler is not ANSI/ISO compliant in the least bit? According to ANSI/ISO compliance, cout is defined int the std namespace. In practice, this means that most modern, compliant code cannot be compiled with this compiler. That's a shame. /David
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 thestdnamespace. JanSo this compiler is not ANSI/ISO compliant in the least bit? According to ANSI/ISO compliance, cout is defined int the std namespace. In practice, this means that most modern, compliant code cannot be compiled with this compiler. That's a shame. /David
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:the"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 intostdnamespace. JanSo this compiler is not ANSI/ISO compliant in the least bit? AccordingANSI/ISO compliance, cout is defined int the std namespace. In practice, this means that most modern, compliant code cannot be compiled with this compiler. That's a shame. /David
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! /DavidI think the compiler does support namespaces (in the sense that you can create your own namespaces) but the standard c++ headers have not been placed in the std namespace as they are supposed to be. That's why you can't use std::cout. Richard.
Feb 15 2002
Richard Johnson wrote:"David Rasmussen" <pinkfloydhomer yahoo.com> wrote in message news:a4hg6h$th4$1 digitaldaemon.com...Correct to some extend. Walter is working on this.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! /DavidI think the compiler does support namespaces (in the sense that you can create your own namespaces)but the standard c++ headers have not been placed in the std namespace as they are supposed to be. That's why you can't use std::cout.Correct. Jan
Feb 15 2002