ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ddd with Tru64 cxx


From: Arnaud Desitter
Subject: Re: ddd with Tru64 cxx
Date: Fri, 16 Jan 2004 10:07:06 -0000

Hi,

I assume that you added "#include <iostream>" in your example
below (note the absence of ".h").
This change was done around the 3.3.4 time frame as
"#include <iostream.h>" and friends is deprecated with g++ 3.x
Using "std::cout" instead of "using namespace std;" avoids
some potential look up problems. In any case, this idiom is standard
C++. Maybe you could try to upgrade cxx or switch to g++.

Regards,

----- Original Message ----- 
From: "Tim Mooney" <address@hidden>
Newsgroups: gmane.comp.debugging.ddd.general
Sent: Wednesday, January 14, 2004 8:52 PM
Subject: ddd with Tru64 cxx


>
> I've been unable to compile any version of ddd with the Tru64 UNIX cxx
> compiler since Andreas quit maintaining it.
>
> I've noticed that many opensource projects that were developed primarily
> with gcc's C++ compiler seem to want to use things like:
>
> std::cout << "hello, world!";
>
> The Tru64 UNIX compiler complains about this:
>
> cxx: Error: configure, line 4881: #135 namespace "std" has no member
"cout" (notmember)
>
> If you change that to
>
> using namespace std;
>
>
> cout << "hello, world!";
>
>
> it works fine.  I looked through the source code, and since 3.3.1 every
> instance of `cerr' or `cout' has been changed to `std::cerr' and
> `std::cout', respectively.  Does anyone know why that was done?
>
> Tim
> -- 
> Tim Mooney                              address@hidden
> Information Technology Services         (701) 231-1076 (Voice)
> Room 242-J6, IACC Building              (701) 231-8541 (Fax)
> North Dakota State University, Fargo, ND 58105-5164





reply via email to

[Prev in Thread] Current Thread [Next in Thread]