Including slist

Started by
4 comments, last by AfroFire 18 years ago
It just isn't working!! Just by doing a simple #include <slist> the following errors are produced:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\threads\Makefile.win"
Executing  make clean
rm -f main.o s_scene_graph.o s_object.o t_star.o threads_private.res threads.exe

g++.exe -D__DEBUG__ -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2/ext"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/ext"    -pg -g3

In file included from C:/Dev-Cpp/include/c++/3.4.2/ext/memory:68,
                 from C:/Dev-Cpp/include/c++/3.4.2/string:48,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/locale_classes.h:47,

                 from C:/Dev-Cpp/include/c++/3.4.2/bits/ios_base.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/ios:49,
                 from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
                 from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
                 from s_scene_graph.h:4,
                 from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h: In member function `void std::_Temporary_buffer<_ForwardIterator, _Tp>::_M_initialize_buffer(const _Tp&, __false_type)':
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:97: error: `uninitialized_fill_n' is not a member of `std'
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h: In destructor `std::_Temporary_buffer<_ForwardIterator, _Tp>::~_Temporary_buffer()':

C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:128: error: `_Destroy' is not a member of `std'
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:129: error: `return_temporary_buffer' is not a member of `std'
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h: In constructor `std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, _ForwardIterator)':
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:153: error: `get_temporary_buffer' undeclared (first use this function)
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:153: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:154: error: expected primary-expression before '>' token
C:/Dev-Cpp/include/c++/3.4.2/bits/stl_tempbuf.h:162: error: `return_temporary_buffer' is not a member of `std'
In file included from C:/Dev-Cpp/include/c++/3.4.2/string:48,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/locale_classes.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/ios_base.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/ios:49,
                 from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
                 from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,

                 from s_scene_graph.h:4,
                 from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/ext/memory: In function `std::pair<_InputIter, _ForwardIter> __gnu_cxx::__uninitialized_copy_n(_InputIter, _Size, _ForwardIter, std::input_iterator_tag)':
C:/Dev-Cpp/include/c++/3.4.2/ext/memory:86: error: `_Construct' is not a member of `std'

C:/Dev-Cpp/include/c++/3.4.2/ext/memory:91: error: `_Destroy' is not a member of `std'
C:/Dev-Cpp/include/c++/3.4.2/ext/memory: In function `std::pair<_InputIter, _ForwardIter> __gnu_cxx::__uninitialized_copy_n(_RandomAccessIter, _Size, _ForwardIter, std::random_access_iterator_tag)':

C:/Dev-Cpp/include/c++/3.4.2/ext/memory:105: error: `uninitialized_copy' is not a member of `std'

In file included from C:/Dev-Cpp/include/c++/3.4.2/string:56,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/locale_classes.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/ios_base.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/ios:49,
                 from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
                 from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
                 from s_scene_graph.h:4,
                 from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/ext/algorithm: In function `bool __gnu_cxx::is_heap(_RandomAccessIterator, _RandomAccessIterator)':
C:/Dev-Cpp/include/c++/3.4.2/ext/algorithm:435: error: `__is_heap' is not a member of `std'
C:/Dev-Cpp/include/c++/3.4.2/ext/algorithm: In function `bool __gnu_cxx::is_heap(_RandomAccessIterator, _RandomAccessIterator, _StrictWeakOrdering)':
C:/Dev-Cpp/include/c++/3.4.2/ext/algorithm:455: error: `__is_heap' is not a member of `std'

In file included from C:/Dev-Cpp/include/c++/3.4.2/string:57,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/locale_classes.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/ios_base.h:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/ios:49,
                 from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
                 from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
                 from s_scene_graph.h:4,
                 from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h: At global scope:
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >':
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:936:   instantiated from here
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:117: error: invalid use of undefined type `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:118: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:119: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:120: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:121: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:122: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:123: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:125: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:126: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:127: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:249: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider':
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:253:   instantiated from `std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:936:   instantiated from here

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:236: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >':
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:936:   instantiated from here
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:270: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:273: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:284: error: invalid use of undefined type `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:293: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:310: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:314: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:383: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:195: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:206: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:217: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:231: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:459: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:470: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:478: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:489: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:498: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:507: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:516: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:525: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:532: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:537: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:541: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:567: error: invalid use of undefined type `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:567: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:574: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:419: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:621: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:638: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:656: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:675: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:613: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:630: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:761: error: invalid use of undefined type `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:806: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:262: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:850: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:879: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:894: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:909: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:932: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:288: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:972: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:995: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1012: error: invalid use of undefined type `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1036: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1049: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1069: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1096: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1119: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:324: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1161: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1184: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1202: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1220: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1241: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1262: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1286: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1298: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1309: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1319: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1330: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1343: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:584: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1353: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1367: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:164: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:672: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:686: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1495: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1509: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:700: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1539: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:718: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1567: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:739: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1597: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:756: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1625: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1644: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1658: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:771: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1686: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1705: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1719: error: invalid use of undefined type `struct std::allocator<char>'

C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:792: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1748: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:804: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1778: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:815: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1807: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:836: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:1839: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:856: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:872: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:904: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:921: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep_base':
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:152:   instantiated from `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:936:   instantiated from here
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:146: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:147: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep':

C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:936:   instantiated from here
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.h:154: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:61: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:78: error: no type named `size_type' in `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:464: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/basic_string.tcc:550: error: invalid use of undefined type `struct std::allocator<char>'
C:/Dev-Cpp/include/c++/3.4.2/bits/stringfwd.h:49: error: declaration of `struct std::allocator<char>'

In file included from C:/Dev-Cpp/include/c++/3.4.2/locale:47,
                 from C:/Dev-Cpp/include/c++/3.4.2/bits/ostream.tcc:40,
                 from C:/Dev-Cpp/include/c++/3.4.2/ostream:545,
                 from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
                 from s_scene_graph.h:4,
                 from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::string&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:325: error: 'struct std::string' has no member named 'reserve'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:362: error: 'struct std::string' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:383: error: 'struct std::string' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:409: error: 'struct std::string' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, _ValueT&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:507: error: 'struct std::string' has no member named 'reserve'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:608: error: 'struct std::string' has no member named 'size'

C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, float&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:743: error: 'struct std::string' has no member named 'reserve'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, double&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:756: error: 'struct std::string' has no member named 'reserve'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, long double&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:769: error: 'struct std::string' has no member named 'reserve'

C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `_InIter std::money_get<_CharT, _InIter>::_M_extract(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::string&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1289: error: 'struct std::string' has no member named 'reserve'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1301: error: 'struct std::string' has no member named 'reserve'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1433: error: 'struct std::string' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1435: error: 'struct std::string' has no member named 'find_first_not_of'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1436: error: `npos' is not a member of `std::string'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1438: error: 'struct std::string' has no member named 'erase'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1438: error: 'struct std::string' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1442: error: no match for 'operator[]' in '__res[0]'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1443: error: 'struct std::string' has no member named 'insert'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1443: error: 'struct std::string' has no member named 'begin'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1446: error: 'struct std::string' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In member function `virtual _InIter std::money_get<_CharT, _InIter>::do_get(_InIter, _InIter, bool, std::ios_base&, std::_Ios_Iostate&, std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) const':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1503: error: no type named `size_type' in `struct std::string'

C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:1513: error: 'struct std::string' has no member named 'size'

C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc: In function `bool std::__verify_grouping(const char*, size_t, const std::string&)':
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:2494: error: 'const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >' has no member named 'size'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:2503: error: no match for 'operator[]' in '__grouping_tmp[__i]'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:2505: error: no match for 'operator[]' in '__grouping_tmp[__i]'
C:/Dev-Cpp/include/c++/3.4.2/bits/locale_facets.tcc:2508: error: no match for 'operator[]' in '__grouping_tmp[0]'

In file included from main.cpp:1:


Be sure to note that -I"C:/Dev-Cpp/include/c /3.4.2/ext" So It's not that im not including the wrong file. I've googled around a bit and it seems everyone else is having just a hard time figuring it out as I am. Any help appreciated - thanks. Thank you.
AfroFire | Brin"The only thing that interferes with my learning is my education."-Albert Einstein
Advertisement
Hm... the slist header isn't showing up anywhere in that error trace. Try moving slist after iostream, just to see what happens. If that doesn't work, post the top parts of main.cpp and s_scene_graph.h.
well moving the ext to be included after the include directory cut down the errors to something readable:

Compiler: Default compilerBuilding Makefile: "C:\Dev-Cpp\Projects\threads\Makefile.win"Executing  make...make.exe -f "C:\Dev-Cpp\Projects\threads\Makefile.win" allg++.exe -D__DEBUG__ -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/ext"  -I"C:/Dev-Cpp/include/c++/3.4.2/ext"    -pg -g3In file included from main.cpp:1:s_scene_graph.h:35: error: ISO C++ forbids declaration of `slist' with no types_scene_graph.h:35: error: expected `;' before '<' tokens_scene_graph.h:36: error: ISO C++ forbids declaration of `slist' with no types_scene_graph.h:36: error: expected `;' before '<' tokens_scene_graph.h:37: error: ISO C++ forbids declaration of `slist' with no types_scene_graph.h:37: error: expected `;' before '<' tokens_scene_graph.h:38: error: ISO C++ forbids declaration of `slist' with no types_scene_graph.h:38: error: expected `;' before '<' tokenmake.exe: *** [main.o] Error 1Execution terminated


This is what the s_scene_graph.h looks like:

#ifndef s_scene_graph_h#define s_scene_graph_h#include <iostream>#include <slist>#include <stdlib.h>#include <SDL/sdl.h>#include <SDL/sdl_thread.h>#include <GL/glew.h>#include <fstream>#include <time.h>#include "s_object.h"//using namespace std;class S_SCENE_GRAPH{	public:		S_SCENE_GRAPH();		~S_SCENE_GRAPH();		void update(float);		void update_thread1(float);		void update_thread2(float);		void draw();		void draw_thread1();		void draw_thread2();		void addObject(S_OBJECT *);		void removeObject(int);			void clear();				slist<S_OBJECT *> scene_thread1; // Error line		slist<S_OBJECT *> scene_thread2; // Error line		slist<S_OBJECT *>::iterator t1; // Error line		slist<S_OBJECT *>::iterator t2; // Error line		bool first;};#endif



Thank you for the quick response - Im still clueless - Its like including slist is pointless at this point - it seems like its not even recognizing it though the include is there.
AfroFire | Brin"The only thing that interferes with my learning is my education."-Albert Einstein
Well, in that instance, you aren't specifying slist's namespace.
__gnu_cxx::slist

or, if you prefer, for convenience:

namespace ext = __gnu_cxx;

ext::slist
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Ya know I was looking through the source and saw that exact thing and thought for a second - hm this might be convenient...


Didn't fully process it though - duh. Thanks a lot - ++ for all who replied... Hopefully this now gets cached in google so others can reference.


AfroFire | Brin"The only thing that interferes with my learning is my education."-Albert Einstein

This topic is closed to new replies.

Advertisement