Re: simple g++-3.0 problem

2001-04-28 Thread Steve Greenland
On 27-Apr-01, 14:22 (CDT), Ulrich Eckhardt <[EMAIL PROTECTED]> wrote: > On Friday 27 April 2001 20:49, Dale E Martin wrote: > > #include > > use > #include > Doesn't which of these you use depend on whether you want the old (AT&T?) iostreams library or the C++ standardized version? Agreed,

Re: simple g++-3.0 problem

2001-04-27 Thread Ulrich Eckhardt
On Friday 27 April 2001 20:49, Dale E Martin wrote: > #include use #include cheers U

Re: simple g++-3.0 problem

2001-04-27 Thread Dale E Martin
> g++ << 3.0 handled the "std" namespace incorrectly and let you get away > with this. g++ 3.0 requires that you either declare "using std" or explicitly > say "std::string getString()". > >Not looking forward to fixing this in all my own code, I knew it had to be something silly like this

Re: simple g++-3.0 problem

2001-04-27 Thread Daniel Burrows
On Fri, Apr 27, 2001 at 02:31:12PM -0400, Dale E Martin <[EMAIL PROTECTED]> was heard to say: > Basically, it doesn't like the declaration "string getString()"... > g++-2.95.4 doesn't seem to mind this code, and I can't for the life of me > figuer out why it would be broken. I think this is the

Re: simple g++-3.0 problem

2001-04-27 Thread Wichert Akkerman
Previously Dale E Martin wrote: > does not compile with g++-3.0 - I get the following error: > ~/test/c++> g++-3.0 simple-problem-g++3.cpp -o simple-problem-g++3 > simple-problem-g++3.cpp:9: parse error before `)' token It doesn't now string, since that is in the std namespace. Either insert "usin

simple g++-3.0 problem

2001-04-27 Thread Dale E Martin
Hi, I'm using the prerelease g++-3.0 for some testing. I've got a weird compilation problem that I don't understand at all, and I was wondering if anyone could shed any insight on it. This program: // Begin c++ program #include #include class foo { public: foo(){} ~foo(){} string getS