|
From: <no...@so...> - 2002-09-18 01:46:37
|
Support Requests item #610271, was opened at 2002-09-17 07:43 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=610271&group_id=2435 Category: None Group: None Status: Open Priority: 5 Submitted By: Jon Kuhn (compumatrix) Assigned to: Nobody/Anonymous (nobody) Summary: C++ STL class problem Initial Comment: I am using MinGW 2.0 with gcc 3.2. I keep getting the following error on code that compiled fine with older versions, and can't seem to find a reason why: "'string' used as a type, but not defined as a type" ---------------------------------------------------------------------- Comment By: Luke Dunstan (infidel) Date: 2002-09-18 09:46 Message: Logged In: YES user_id=30442 Please provide some example code that shows this problem. If by "older versions" you mean GCC 2.95.x, remember that in ISO C++ "string" is in the "std" namespace, so you must use either "std::string" or a "using" declaration/directive. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=610271&group_id=2435 |