错误信息如下:
In file included from /usr/include/c++/3.2.2/backward/new.h:33,
from /usr/include/g++-3/stl_algobase.h:52,
from /usr/include/g++-3/slist:18,
from 408slist-test.cpp:2:
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/3.2.2/backward/new.h:34,
from /usr/include/g++-3/stl_algobase.h:52,
from /usr/include/g++-3/slist:18,
from 408slist-test.cpp:2:
/usr/include/c++/3.2.2/new:79: `size_t' undeclared in namespace `std'
/usr/include/c++/3.2.2/new:79: declaration of `operator new' as non-function
/usr/include/c++/3.2.2/new:79: invalid declarator
/usr/include/c++/3.2.2/new:80: `size_t' undeclared in namespace `std'
/usr/include/c++/3.2.2/new:80: declaration of `operator new []' as non-function
/usr/include/c++/3.2.2/new:80: invalid declarator
/usr/include/c++/3.2.2/new:83: `size_t' undeclared in namespace `std'
/usr/include/c++/3.2.2/new:83: parse error before `::' token
/usr/include/c++/3.2.2/new:83: `operator new' takes type `size_t' (`unsigned
int') as first parameter
/usr/include/c++/3.2.2/new:84: `size_t' undeclared in namespace `std'
/usr/include/c++/3.2.2/new:84: parse error before `::' token
/usr/include/c++/3.2.2/new:84: `operator new' takes type `size_t' (`unsigned
int') as first parameter
/usr/include/c++/3.2.2/new:89: `size_t' undeclared in namespace `std'
/usr/include/c++/3.2.2/new:89: parse error before `*' token
/usr/include/c++/3.2.2/new:89: `operator new' takes type `size_t' (`unsigned
int') as first parameter
/usr/include/c++/3.2.2/new: In function `void* operator new(unsigned int,
...)':
/usr/include/c++/3.2.2/new:89: `__p' undeclared (first use this function)
/usr/include/c++/3.2.2/new:89: (Each undeclared identifier is reported only
once for each function it appears in.)
/usr/include/c++/3.2.2/new: At global scope:
/usr/include/c++/3.2.2/new:90: `size_t' undeclared in namespace `std'
/usr/include/c++/3.2.2/new:90: parse error before `*' token
/usr/include/c++/3.2.2/new:90: `operator new' takes type `size_t' (`unsigned
int') as first parameter
In file included from /usr/include/g++-3/slist:19,
from 408slist-test.cpp:2:
/usr/include/g++-3/stl_alloc.h:704: warning: `typename
__default_alloc_template<threads, inst>::_Obj' is implicitly a typename
/usr/include/g++-3/stl_alloc.h:704: warning: implicit typename is deprecated,
please see the documentation for details