Time to fall on your sword :-)
g++ 3.0 now supports the ANSI standard. One of the things you will need
to do is to add "using" statements, such as "using namespace std".
I ran into this same problem last year with a customer (commercial Unix)
who has millions of lines of code. The solution was to backport gcc
2.9.5 to the system. However, one problem with backporting an older
compiler is that you become out of sync with the linker and other parts
of the compilation system.
--
Jerry Feldman
I am trying to revive some very old libraries on Linux.
As far as I know, it was originally written on Solaris in 1994. According to the headers it was also compatible with gcc 2.4
I now have gcc 3.2 on SuSE 8.1 and this is the compile errors:
gcc -x c++ -c -g -D_UNIX_ -D_GNUG_NEW_ -D_DEBUG -Wall -Wno-deprecated -I../../Include ../storable.cpp In file included from /usr/include/g++/iostream:45, from /usr/include/g++/backward/iostream.h:32, from ../../Include/objectcl.h:21, from ../../Include/storable.h:19, from ../storable.cpp:12: /usr/include/g++/ostream:256: parse error before '\xa' /usr/include/g++/ostream:260: syntax error before `&' token /usr/include/g++/ostream:261: `basic_ostream' was not declared in this scope/usr/include/g++/ostream:261: `_CharT' was not declared in this scope/usr/include/g++/ostream:261: `_Traits' was not declared in this scope/usr/include/g++/ostream:261: `__os' was not declared in this scope/usr/include/g++/ostream:262: syntax error before `{' token /usr/include/g++/ostream:265: syntax error before `&' token /usr/include/g++/ostream:266: `basic_ostream' was not declared in this scope/usr/include/g++/ostream:266: `_CharT' was not declared in this scope/usr/include/g++/ostream:266: `_Traits' was not declared in this scope/usr/include/g++/ostream:266: `__os' was not declared in this scope/usr/include/g++/ostream:267: syntax error before `{' token
I have googled, but I cannot find something to point me in the correct direction. I assume I need some compiler setting or something?