bug-gplusplus
[Top][All Lists]
Advanced

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

Re: Bug or feature change


From: Ben Elliston
Subject: Re: Bug or feature change
Date: 28 Jan 2003 21:43:36 +1100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

>>>>> "Larry" == Larry Durtschi <Durtschi> writes:

  Larry>         const string str = "this is a test";
  Larry>         cout << "here is str " << str << "\n";

  Larry> str.cc:5: ISO C++ forbids declaration of `string' with no type
  Larry> str.cc:5: uninitialized const `string'
  Larry> str.cc:5: parse error before `=' token
  Larry> str.cc:7: `cout' undeclared (first use this function)

These types and objects are in the std C++ namespace.  You should
refer to them as std::string and std::cout, respectively.  This change
in the compiler represents closer conformity to the ISO C++ standard.

Ben





reply via email to

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