This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: string
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: Margus Metskivi <Margus dot Metskivi at liewenthal dot ee>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 13 Mar 2002 10:29:37 +0100 (CET)
- Subject: Re: string
On Wed, 13 Mar 2002, Margus Metskivi wrote:
> What's different with g++3 when compiling a piece of code with:
> #include <string>
>
> int GetStr(string &Buffer);
>
> .
> .
> .
>
>
> with g++ everything works fine but g++3 gives errors like:
> "unexpected token string &"
You need to add
using namespace std;
or change string to std::string;
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/