Re: [Mingw-users] Problem with string object on mingw.
- Date: Thu, 15 May 2008 20:06:52 +0100
- From: "Dave Korn" <dave.korn@xxxxxxxxxx>
- Subject: Re: [Mingw-users] Problem with string object on mingw.
Rafael Anschau wrote on 14 May 2008 20:59:
> This code compiles with borland 5.5.1, but fails with g++ .The message I
> get is:
>
> `string' does not name a type
'string' got moved into the 'std' namespace sometime around when the C++
standard was formalised. Either replace 'string' by 'std::string'
throughout, or bring the std namespace into global scope by adding a "using
namespace std;" statement in your source file somewhere between the
#includes and the code.
cheers,
DaveK
--
Can't think of a witty .sigline today....
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users