All pastes #2120832 Raw Edit

Untitled

public text v1 · immutable
#2120832 ·published 2012-02-22 17:41 UTC
rendered paste body
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h:279:8: error: need ‘typename’ before ‘container:: iterator’ because ‘container’ is a dependent scope
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h:279:28: error: expected ‘;’ before ‘it’
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h:279:44: error: ‘it’ was not declared in this scope
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h: In function ‘void DeleteSTLMap(map&)’:
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h:289:8: error: need ‘typename’ before ‘map:: iterator’ because ‘map’ is a dependent scope
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h:289:22: error: expected ‘;’ before ‘it’
/home/damirmen/Documents/cs360/z04-z08/Buckland_Chapter3-Steering Behaviors/misc/utils.h:289:38: error: ‘it’ was not declared in this scope
In file included from Path.cpp:1:0:
Path.h: In member function ‘Vector2D Path::CurrentWaypoint() const’:
Path.h:54:38: error: no match for ‘operator!=’ in ‘((const Path*)this)->Path::curWaypoint != 0’
Path.h:54:38: note: candidates are:
/usr/include/c++/4.6/bits/stl_list.h:186:7: note: bool std::_List_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = Vector2D, std::_List_iterator<_Tp>::_Self = std::_List_iterator<Vector2D>]
/usr/include/c++/4.6/bits/stl_list.h:186:7: note:   no known conversion for argument 1 from ‘int’ to ‘const _Self& {aka const std::_List_iterator<Vector2D>&}’
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/guiddef.h:160:14: note: int operator!=(const GUID&, const GUID&)
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/guiddef.h:160:14: note:   no known conversion for argument 1 from ‘const iterator {aka const std::_List_iterator<Vector2D>}’ to ‘const GUID& {aka const _GUID&}’
/usr/include/c++/4.6/bits/stl_vector.h:1297:5: note: template<class _Tp, class _Alloc> bool std::operator!=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
/usr/include/c++/4.6/bits/streambuf_iterator.h:200:5: note: template<class _CharT, class _Traits> bool std::operator!=(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)
/usr/include/c++/4.6/bits/basic_string.h:2497:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
/usr/include/c++/4.6/bits/basic_string.h:2485:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/basic_string.h:2473:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.6/bits/postypes.h:223:5: note: template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
/usr/include/c++/4.6/bits/stl_list.h:1600:5: note: template<class _Tp, class _Alloc> bool std::operator!=(const std::list<_Tp, _Alloc>&, const std::list<_Tp, _Alloc>&)
/usr/include/c++/4.6/bits/stl_list.h:281:5: note: template<class _Val> bool std::operator!=(const std::_List_iterator<_Tp>&, const std::_List_const_iterator<_Val>&)
/usr/include/c++/4.6/bits/allocator.h:137:5: note: template<class _Tp> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
/usr/include/c++/4.6/bits/allocator.h:132:5: note: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_T1>&, const std::allocator<_T2>&)
/usr/include/c++/4.6/bits/stl_iterator.h:347:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
/usr/include/c++/4.6/bits/stl_iterator.h:297:5: note: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
/usr/include/c++/4.6/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
Path.cpp: In member function ‘std::list<Vector2D> Path::CreateRandomPath(int, double, double, double, double)’:
Path.cpp:17:36: error: ‘min’ was not declared in this scope
Path.cpp:17:36: note: suggested alternative:
/usr/include/c++/4.6/bits/stl_algobase.h:233:5: note:   ‘std::min’
make[1]: *** [obj/mingw/Path.o] Error 1