The error means that it cannot find a type named
fstream. This is happening because
fstream is in the
std namespace. Try the following instead:
Code:
class Utility
{
..
..
private:
static std::fstream fileStopWatch ;
..
..
};
However, this change (not polluting the global namespace) happened around the 3.x series of gcc. There are also some minor changes in the requirements on scoping of the standard library as we move towards C++0x.