string
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Wed Mar 13 01:29:00 GMT 2002
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/
More information about the Gcc
mailing list