Problem trying to compile CEGUI

BlitzMax Forums/Brucey's Modules/Problem trying to compile CEGUI

byo(Posted 2011) [#1]
Hi, guys.

I just updated my files from the SVN versions but I can't compile CEGUI it seems. There is a few other modules as well but CEGUI is really giving me this error:


Compiling:CEGUIRenderingSurface.cpp
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h: In member function `__gnu_cxx::__normal_iterator<typename _Alloc::const_pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::begin() const [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:221:   instantiated from `std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:322: error: no matching function for call to `__gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >::__normal_iterator(const CEGUI::GeometryBuffer** const&)'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:587: note: candidates are: __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >::__normal_iterator(const __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >&)
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:603: note:                 __gnu_cxx::__normal_iterator<_Iterator, _Container>::__normal_iterator(const _Iterator&) [with _Iterator = const CEGUI::GeometryBuffer*, _Container = std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> >]
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:600: note:                 __gnu_cxx::__normal_iterator<_Iterator, _Container>::__normal_iterator() [with _Iterator = const CEGUI::GeometryBuffer*, _Container = std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> >]
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h: In member function `__gnu_cxx::__normal_iterator<typename _Alloc::const_pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::end() const [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:221:   instantiated from `std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:338: error: no matching function for call to `__gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >::__normal_iterator(const CEGUI::GeometryBuffer** const&)'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:587: note: candidates are: __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >::__normal_iterator(const __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >&)
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:603: note:                 __gnu_cxx::__normal_iterator<_Iterator, _Container>::__normal_iterator(const _Iterator&) [with _Iterator = const CEGUI::GeometryBuffer*, _Container = std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> >]
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:600: note:                 __gnu_cxx::__normal_iterator<_Iterator, _Container>::__normal_iterator() [with _Iterator = const CEGUI::GeometryBuffer*, _Container = std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> >]
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h: In member function `void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(_Tp*, size_t) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:106:   instantiated from `std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:182:   instantiated from `std::vector<_Tp, _Alloc>::vector(const typename std::_Vector_base<_Tp, _Alloc>::allocator_type&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:117: error: no matching function for call to `std::_Vector_base<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> >::_Vector_impl::deallocate(const CEGUI::GeometryBuffer**&, size_t&)'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/include/CEGUIMemorySTLWrapper.h:107: note: candidates are: void CEGUI::STLAllocatorWrapper<T, Allocator>::deallocate(typename CEGUI::STLAllocatorWrapperBase<T>::value_type*, size_t) [with T = const CEGUI::GeometryBuffer, Allocator = CEGUI::StdAllocator]
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h: In function `typename __gnu_cxx::__normal_iterator<_IteratorL, _Container>::difference_type __gnu_cxx::operator-(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&) [with _IteratorL = const CEGUI::GeometryBuffer*, _IteratorR = const CEGUI::GeometryBuffer*, _Container = std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> >]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:375:   instantiated from `size_t std::vector<_Tp, _Alloc>::size() const [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:221:   instantiated from `std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:759: error: invalid use of undefined type `const struct CEGUI::GeometryBuffer'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/include/CEGUIForwardRefs.h:62: error: forward declaration of `const struct CEGUI::GeometryBuffer'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h: In member function `_Tp* std::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:100:   instantiated from `std::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:221:   instantiated from `std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:113: error: cannot convert `CEGUI::GeometryBuffer*' to `const CEGUI::GeometryBuffer**' in return
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/include/CEGUIMemorySTLWrapper.h: In member function `typename CEGUI::STLAllocatorWrapperBase<T>::value_type* CEGUI::STLAllocatorWrapper<T, Allocator>::allocate(size_t, const void*) [with T = const CEGUI::GeometryBuffer, Allocator = CEGUI::StdAllocator]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:113:   instantiated from `_Tp* std::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:100:   instantiated from `std::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:221:   instantiated from `std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/include/CEGUIMemorySTLWrapper.h:103: error: invalid application of `sizeof' to incomplete type `const CEGUI::GeometryBuffer' 
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h: In function `_OutputIterator std::__copy(_RandomAccessIterator, _RandomAccessIterator, _OutputIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = const CEGUI::GeometryBuffer*, _OutputIterator = const CEGUI::GeometryBuffer**]':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:266:   instantiated from `_OutputIterator std::__copy_aux2(_InputIterator, _InputIterator, _OutputIterator, __false_type) [with _InputIterator = const CEGUI::GeometryBuffer*, _OutputIterator = const CEGUI::GeometryBuffer**]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:308:   instantiated from `_OutputIterator std::__copy_ni2(_InputIterator, _InputIterator, _OutputIterator, __false_type) [with _InputIterator = const CEGUI::GeometryBuffer*, _OutputIterator = const CEGUI::GeometryBuffer**]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:317:   instantiated from `_OutputIterator std::__copy_ni1(_InputIterator, _InputIterator, _OutputIterator, __true_type) [with _InputIterator = __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >, _OutputIterator = const CEGUI::GeometryBuffer**]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:358:   instantiated from `_OutputIterator std::copy(_InputIterator, _InputIterator, _OutputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >, _OutputIterator = const CEGUI::GeometryBuffer**]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_uninitialized.h:74:   instantiated from `_ForwardIterator std::__uninitialized_copy_aux(_InputIterator, _InputIterator, _ForwardIterator, __true_type) [with _InputIterator = __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >, _ForwardIterator = const CEGUI::GeometryBuffer**]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_uninitialized.h:112:   instantiated from `_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const CEGUI::GeometryBuffer*, std::vector<const CEGUI::GeometryBuffer*, CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator> > >, _ForwardIterator = const CEGUI::GeometryBuffer**]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_vector.h:221:   instantiated from `std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = const CEGUI::GeometryBuffer*, _Alloc = CEGUI::STLAllocatorWrapper<const CEGUI::GeometryBuffer, CEGUI::StdAllocator>]'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_map.h:339:   instantiated from `_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = CEGUI::RenderQueueID, _Tp = CEGUI::RenderQueue, _Compare = std::less<CEGUI::RenderQueueID>, _Alloc = std::allocator<std::pair<const CEGUI::RenderQueueID, CEGUI::RenderQueue> >]'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp:73:   instantiated from here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:245: error: invalid use of undefined type `const struct CEGUI::GeometryBuffer'
C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/include/CEGUIForwardRefs.h:62: error: forward declaration of `const struct CEGUI::GeometryBuffer'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:247: error: cannot convert `const CEGUI::GeometryBuffer' to `const CEGUI::GeometryBuffer*' in assignment
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:248: error: cannot increment a pointer to incomplete type `const CEGUI::GeometryBuffer'
Build Error: failed to compile C:/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/CEGUIRenderingSurface.cpp
Process complete


Do you know what could be the cause of this?

Thanks a lot.

Regards,

Andre Guerreiro Neto (byo)


byo(Posted 2011) [#2]
Also I can't compile the tesseract module (even using the MinGW.rar from ziggy's website):


Building Modules
Compiling:cube_object.cpp
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:43,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:46,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/string:47,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/char_samp.h:33,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.h:77,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.cpp:21:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:167: error: `::snprintf' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:170: error: `::vsnprintf' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:177: error: `__gnu_cxx::snprintf' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:180: error: `__gnu_cxx::vsnprintf' has not been declared
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:46,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/string:47,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/char_samp.h:33,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.h:77,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.cpp:21:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h: In function `int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:72: error: `snprintf' is not a member of `std'
In file included from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/char_set.h:37,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_utils.h:31,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/altlist.h:27,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/word_altlist.h:29,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.h:78,
                 from C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.cpp:21:
C:/BlitzMax/mod/bah.mod/tesseract.mod/src/ccutil/unicharset.h: In static member function `static STRING CHAR_FRAGMENT::to_string(const char*, int, int)':
C:/BlitzMax/mod/bah.mod/tesseract.mod/src/ccutil/unicharset.h:64: error: `snprintf' was not declared in this scope
Build Error: failed to compile C:/BlitzMax/mod/bah.mod/tesseract.mod/src/cube/cube_object.cpp
Process complete


Thank you.

Best,

Andre Guerreiro Neto (byo)


xlsior(Posted 2011) [#3]
When did you download the Tesseract module?

IIRC Brucey released an update a week or two ago to fix some compile errors.


Brucey(Posted 2011) [#4]
Unless there is a specific build issue with gcc 3.4.5, I can only assume there is a general problem with your MinGW install, Andre. (something which appears to happen more often, I've noticed in recent posts on the forum).

I will try and set up a 3.4.5 based BlitzMax and try to build some of the modules...


byo(Posted 2011) [#5]
Hi, Brucey.

I have deleted the folder MingW and reinstalled everything.

The system variables seem to be set up correctly. Is there a MingW version that I could try besides that one and that it'll work with Blitzmax?

I have even downloaded the version from ziggy's website that is linked from the "Guide how to set up MinGW for BlitzMax" post, each time deleting the whole folder but still no success.

Maybe it's because I'm on Windows 7 x64?

Thank you for the amazing modules.

Best regards,

Andre Guerreiro Neto (byo)


Ole JR(Posted 2011) [#6]
Got the same problem here with CEGUI, and yes gcc 3.4.5.
CEGUI.mod revision 1025, last one before cegui 0.7.5 update works..

Also running win7 x64 here.

Did checkout tesseract also, same thing here.
Fail to compile the latest revision, last one working is pre Tesseract 3.x.
In other words revision 914.


Last edited 2011

Last edited 2011

Last edited 2011


Brucey(Posted 2011) [#7]
Well, there lies a conundrum... it seems the ancient versions of gcc that BlitzMax uses by default, are growing more incompatible with newer releases of libraries - I presume, because they are not keeping all these old versions of gcc to test against...


Ole JR(Posted 2011) [#8]
Probably the case.
And for me also, trying to upgrade to gcc v4.5x gives me lots of
undefined reference to `_Unwind_Resume' in, among others, libstdc++.a
when trying to compile something other than the modules.
Get some other undefined refrence too, but don't remember them all.

Infact the modules are the one thing I can build with 4.5x..

Yes I copied the libs & exe files over to the Blitzmax folder.
Used your archive from the other thread.
Only difference is that my BlitzMax is installed in c:\Program Files..

Oh btw, there's one lib missing in that archive,
libunicows.a, needed for maxgui.mod..

Well gonne try installing the lot on another machine tomorrow,
with everything in the root of C:..

Last edited 2011


Brucey(Posted 2011) [#9]
It shouldn't matter where your BlitzMax is installed.
I have several versions in various locations (C:\ ... C:\Program Files ... etc)
The only hassle I have is renaming the mingw folders, and remember which goes with which version ;-)
But otherwise, you can have as many or as few sets of BlitzMax as you like...

The Unwind_Resume issue is related to trying to use the wrong libs or ld/ar...


xlsior(Posted 2011) [#10]
As far as the 'unwind' errors: There are multiple methods that gcc can do the unwinding: SJLJ (setjmp/longjmp) and DW2 (Dwarf-2).

IIRC Blitzmax requires the SJLJ version.

I got mine here: http://tdm-gcc.tdragon.net/download (sjlj version)

Did require a bunch of environment variables to be set for it to function properly under Windows 7 x64, but in the end it all worked properly...


byo(Posted 2011) [#11]

Got the same problem here with CEGUI, and yes gcc 3.4.5.
CEGUI.mod revision 1025, last one before cegui 0.7.5 update works..

Also running win7 x64 here.

Did checkout tesseract also, same thing here.
Fail to compile the latest revision, last one working is pre Tesseract 3.x.
In other words revision 914.



All confirmed here.

No crash in those revisions you mentioned above, either CEGUI or Tesseract. It must be something that was done after them.

I hope this helps. :)

Regards,

Andre Guerreiro Neto (byo)


Ole JR(Posted 2011) [#12]
@xlsior: Thanks a bunch, that version almost got it working.

Followed Brucey's instructions from this post.

Only thing missing was to add this to brl.mod/blitz.mob/blitz.bmx
import "-lstdc++"
import "-lgcc"
And then I'm upgraded to MinGW v4.51!

The other mingw install floating around 'mingw-get-inst-20101030.exe'
still doesn't work for me..

Why it isn't could be nice to know, aren't we rebuilding everything?
As in, should it matter if it's DW2 or SJLJ?

As for the latest revisions of CEGUI & tesseract not building with
older Mingw, me think that is something we have to live with.

Last edited 2011