编译STLport-4.6.2.tar.gz出错,help me~~

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
hpyyang
帖子: 3
注册时间: 2009-07-03 9:53

编译STLport-4.6.2.tar.gz出错,help me~~

#1

帖子 hpyyang » 2009-07-24 9:48

在ubuntu8.10下面的编译STLport-4.6.2库出错具体命令使用
make -f gcc-linux.max clean install
然后就是以下错误:
rm -fr ../lib/obj/GCC-LINUX/Release ../lib/obj/GCC-LINUX/Debug ../lib/obj/GCC-LINUX/DebugSTL \
../lib/obj/GCC-LINUX/Releasex ../lib/obj/GCC-LINUX/Debugx ../lib/obj/GCC-LINUX/DebugSTLx \
../lib/obj/GCC-LINUX/ReleaseD ../lib/obj/GCC-LINUX/DebugD ../lib/obj/GCC-LINUX/DebugSTLD \
../lib/SunWS_cache SunWS_cache ../lib/Templates.DB Templates.DB tempinc
*** ATTENTION! ***
This makefile tries to use system locale which might not work well with all glibc flavours.
If build fails, please resort to gcc.mak which will build C-locale only version for STLport
******************
mkdir -p ../lib/obj/GCC-LINUX/ReleaseD
c++ -pthread -fexceptions -I../stlport -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -D_STLP_USE_GLIBC -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -O2 -fPIC dll_main.cpp -c -o ../lib/obj/GCC-LINUX/ReleaseD/dll_main.o
In file included from ../stlport/memory:32,
from dll_main.cpp:38:
../stlport/stl/_alloc.h:416: 错误: 非模板‘rebind’用作模板
../stlport/stl/_alloc.h:416: 附注: 使用‘_Allocator::template rebind’来表示这是一个模板
../stlport/stl/_alloc.h:416: 错误: 没有声明任何东西
../stlport/stl/_alloc.h:417: 错误: ‘_Rebind_type’未声明
../stlport/stl/_alloc.h: In function ‘typename _STL::_Alloc_traits<_Tp, _Allocator>::allocator_type _STL::__stl_alloc_create(const _Alloc&, const _Tp*)’:
../stlport/stl/_alloc.h:460: 错误: 非模板‘rebind’用作模板
../stlport/stl/_alloc.h:460: 附注: 使用‘_Alloc::template rebind’来表示这是一个模板
../stlport/stl/_alloc.h:460: 错误: 没有声明任何东西
In file included from ../stlport/stl/_list.h:556,
from ../stlport/list:39,
from dll_main.cpp:41:
../stlport/stl/_list.c: In member function ‘void _STL::list<_Tp, _Alloc>::resize(size_t, _Tp)’:
../stlport/stl/_list.c:89: 警告: 建议在‘for’空语句体的‘;’前添加一个空格或者在其周围显式地加上花括号
In file included from dll_main.cpp:46:
../stlport/stl/_alloc.h: At global scope:
../stlport/stl/_alloc.h: In instantiation of ‘_STL::_STLP_alloc_proxy<char*, char, int>’:
../stlport/stl/_string.h:120: instantiated from ‘_STL::_String_base<char, _STL::allocator<char> >’
../stlport/stl/_string_fwd.h:32: instantiated from ‘_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >’
../stlport/stdexcept:85: instantiated from here
../stlport/stl/_alloc.h:481: 错误: 基类型‘int’不是结构或类
In file included from ../stlport/stl/_ios.h:30,
from ../stlport/stl/_istream.h:27,
from ../stlport/istream:36,
from ../stlport/stl/_bitset.h:63,
from ../stlport/bitset:51,
from dll_main.cpp:47:
../stlport/stl/_alloc.h: In instantiation of ‘_STL::_STLP_alloc_proxy<wchar_t*, wchar_t, int>’:
../stlport/stl/_string.h:120: instantiated from ‘_STL::_String_base<wchar_t, _STL::allocator<wchar_t> >’
../stlport/stl/_string_fwd.h:32: instantiated from ‘_STL::basic_string<wchar_t, _STL::char_traits<wchar_t>, _STL::allocator<wchar_t> >’
../stlport/stl/_numpunct.h:99: instantiated from here
../stlport/stl/_alloc.h:481: 错误: 基类型‘int’不是结构或类
../stlport/stl/_alloc.h: In instantiation of ‘_STL::_STLP_alloc_proxy<void**, void*, int>’:
../stlport/stl/_vector.h:91: instantiated from ‘_STL::_Vector_base<void*, _STL::allocator<void*> >’
dll_main.cpp:167: instantiated from here
../stlport/stl/_alloc.h:481: 错误: 基类型‘int’不是结构或类
../stlport/stl/_vector.h: In constructor ‘_STL::_Vector_base<_Tp, _Alloc>::_Vector_base(const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:167: instantiated from here
../stlport/stl/_vector.h:72: 错误: 对‘_STL::_STLP_alloc_proxy<void**, void*, int>::_STLP_alloc_proxy(const _STL::allocator<void*>&, int)’的调用没有匹配的函数
../stlport/stl/_alloc.h:487: 附注: 备选为: _STL::_STLP_alloc_proxy<_Value, _Tp, _MaybeReboundAlloc>::_STLP_alloc_proxy(const _MaybeReboundAlloc&, _Value) [with _Value = void**, _Tp = void*, _MaybeReboundAlloc = int]
../stlport/stl/_alloc.h:481: 附注: _STL::_STLP_alloc_proxy<void**, void*, int>::_STLP_alloc_proxy(const _STL::_STLP_alloc_proxy<void**, void*, int>&)
../stlport/stl/_vector.h: In constructor ‘_STL::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:167: instantiated from here
../stlport/stl/_vector.h:75: 错误: 对‘_STL::_STLP_alloc_proxy<void**, void*, int>::_STLP_alloc_proxy(const _STL::allocator<void*>&, int)’的调用没有匹配的函数
../stlport/stl/_alloc.h:487: 附注: 备选为: _STL::_STLP_alloc_proxy<_Value, _Tp, _MaybeReboundAlloc>::_STLP_alloc_proxy(const _MaybeReboundAlloc&, _Value) [with _Value = void**, _Tp = void*, _MaybeReboundAlloc = int]
../stlport/stl/_alloc.h:481: 附注: _STL::_STLP_alloc_proxy<void**, void*, int>::_STLP_alloc_proxy(const _STL::_STLP_alloc_proxy<void**, void*, int>&)
../stlport/stl/_vector.h:77: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘allocate’的成员
../stlport/stl/_vector.h: In destructor ‘_STL::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:167: instantiated from here
../stlport/stl/_vector.h:85: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘deallocate’的成员
../stlport/stl/_vector.h: In member function ‘void _STL::vector<_Tp, _Alloc>::_M_insert_overflow(_Tp*, const _Tp&, const _STL::__false_type&, size_t, bool) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:130: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘allocate’的成员
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:144: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘deallocate’的成员
../stlport/stl/_vector.h: In member function ‘void _STL::vector<_Tp, _Alloc>::_M_insert_overflow(_Tp*, const _Tp&, const _STL::__true_type&, size_t, bool) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:155: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘allocate’的成员
../stlport/stl/_vector.h: In constructor ‘_STL::vector<_Tp, _Alloc>::vector(const typename _STL::_Vector_base<_Tp, _Alloc>::allocator_type&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:199: 错误: 对‘_STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(const int&)’的调用没有匹配的函数
../stlport/stl/_vector.h:74: 附注: 备选为: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:71: 附注: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:65: 附注: _STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(const _STL::_Vector_base<void*, _STL::allocator<void*> >&)
../stlport/stl/_vector.h: In constructor ‘_STL::vector<_Tp, _Alloc>::vector(size_t, const _Tp&, const typename _STL::_Vector_base<_Tp, _Alloc>::allocator_type&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:203: 错误: 对‘_STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(size_t&, const int&)’的调用没有匹配的函数
../stlport/stl/_vector.h:74: 附注: 备选为: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:71: 附注: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:65: 附注: _STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(const _STL::_Vector_base<void*, _STL::allocator<void*> >&)
../stlport/stl/_vector.h: In constructor ‘_STL::vector<_Tp, _Alloc>::vector(size_t) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:208: 错误: 对‘_STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(size_t&, int)’的调用没有匹配的函数
../stlport/stl/_vector.h:74: 附注: 备选为: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:71: 附注: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:65: 附注: _STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(const _STL::_Vector_base<void*, _STL::allocator<void*> >&)
../stlport/stl/_vector.h: In copy constructor ‘_STL::vector<_Tp, _Alloc>::vector(const _STL::vector<_Tp, _Alloc>&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:213: 错误: 对‘_STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(size_t, int)’的调用没有匹配的函数
../stlport/stl/_vector.h:74: 附注: 备选为: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:71: 附注: _STL::_Vector_base<_Tp, _Alloc>::_Vector_base(const _Alloc&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]
../stlport/stl/_vector.h:65: 附注: _STL::_Vector_base<void*, _STL::allocator<void*> >::_Vector_base(const _STL::_Vector_base<void*, _STL::allocator<void*> >&)
../stlport/stl/_vector.c: In member function ‘void _STL::vector<_Tp, _Alloc>::reserve(size_t) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.c:53: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘allocate’的成员
../stlport/stl/_vector.h: In member function ‘void _STL::vector<_Tp, _Alloc>::_M_clear() [with _Tp = void*, _Alloc = _STL::allocator<void*>]’:
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:496: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.c: In member function ‘void _STL::_String_base<_Tp, _Alloc>::_M_allocate_block(size_t) [with _Tp = char, _Alloc = _STL::allocator<char>]’:
dll_main.cpp:182: instantiated from here
../stlport/stl/_string.c:532: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.h: In member function ‘void _STL::_String_base<_Tp, _Alloc>::_M_deallocate_block() [with _Tp = char, _Alloc = _STL::allocator<char>]’:
dll_main.cpp:182: instantiated from here
../stlport/stl/_string.h:124: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.c: In constructor ‘_STL::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.c:542: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.c: In member function ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::reserve(size_t) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.c:65: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.c:72: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.c: In member function ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::insert(_CharT*, size_t, _CharT) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.c:223: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.c:232: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.c: In member function ‘_CharT* _STL::basic_string<_CharT, _Traits, _Alloc>::_M_insert_aux(_CharT*, _CharT) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.c:173: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.c:182: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_vector.h: In member function ‘_Tp* _STL::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_t, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = void* const*, _Tp = void*, _Alloc = _STL::allocator<void*>]’:
../stlport/stl/_vector.c:95: instantiated from ‘_STL::vector<_Tp, _Alloc>& _STL::vector<_Tp, _Alloc>::operator=(const _STL::vector<_Tp, _Alloc>&) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:515: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘allocate’的成员
../stlport/stl/_vector.h:524: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘deallocate’的成员
../stlport/stl/_vector.h: In member function ‘_Tp* _STL::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_t, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = void**, _Tp = void*, _Alloc = _STL::allocator<void*>]’:
../stlport/stl/_vector.c:50: instantiated from ‘void _STL::vector<_Tp, _Alloc>::reserve(size_t) [with _Tp = void*, _Alloc = _STL::allocator<void*>]’
dll_main.cpp:171: instantiated from here
../stlport/stl/_vector.h:515: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘allocate’的成员
../stlport/stl/_vector.h:524: 错误: ‘class _STL::_STLP_alloc_proxy<void**, void*, int>’没有名为‘deallocate’的成员
../stlport/stl/_alloc.h: In constructor ‘_STL::_STLP_alloc_proxy<_Value, _Tp, _MaybeReboundAlloc>::_STLP_alloc_proxy(const _MaybeReboundAlloc&, _Value) [with _Value = char*, _Tp = char, _MaybeReboundAlloc = int]’:
../stlport/stl/_string.h:129: instantiated from ‘_STL::_String_base<_Tp, _Alloc>::_String_base(const typename _STL::_Alloc_traits<_Tp, _Alloc>::allocator_type&) [with _Tp = char, _Alloc = _STL::allocator<char>]’
dll_main.cpp:182: instantiated from here
../stlport/stl/_alloc.h:487: 错误: 类型‘int’不是‘_STL::_STLP_alloc_proxy<char*, char, int>’的直接基类
../stlport/stl/_string.h: In member function ‘void _STL::_String_base<_Tp, _Alloc>::_M_deallocate_block() [with _Tp = wchar_t, _Alloc = _STL::allocator<wchar_t>]’:
../stlport/stl/_string.h:135: instantiated from ‘_STL::_String_base<_Tp, _Alloc>::~_String_base() [with _Tp = wchar_t, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_string.h:305: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = wchar_t, _Traits = _STL::char_traits<wchar_t>, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_numpunct.h:99: instantiated from here
../stlport/stl/_string.h:124: 错误: ‘class _STL::_STLP_alloc_proxy<wchar_t*, wchar_t, int>’没有名为‘deallocate’的成员
../stlport/stl/_alloc.h: In constructor ‘_STL::_STLP_alloc_proxy<_Value, _Tp, _MaybeReboundAlloc>::_STLP_alloc_proxy(const _MaybeReboundAlloc&, _Value) [with _Value = wchar_t*, _Tp = wchar_t, _MaybeReboundAlloc = int]’:
../stlport/stl/_string.h:129: instantiated from ‘_STL::_String_base<_Tp, _Alloc>::_String_base(const typename _STL::_Alloc_traits<_Tp, _Alloc>::allocator_type&) [with _Tp = wchar_t, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_string.c:559: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _STL::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = wchar_t, _Traits = _STL::char_traits<wchar_t>, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_numpunct.h:99: instantiated from here
../stlport/stl/_alloc.h:487: 错误: 类型‘int’不是‘_STL::_STLP_alloc_proxy<wchar_t*, wchar_t, int>’的直接基类
../stlport/stl/_string.c: In member function ‘void _STL::_String_base<_Tp, _Alloc>::_M_allocate_block(size_t) [with _Tp = wchar_t, _Alloc = _STL::allocator<wchar_t>]’:
../stlport/stl/_string.h:385: instantiated from ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::_M_range_initialize(_ForwardIter, _ForwardIter, const _STL::forward_iterator_tag&) [with _ForwardIter = wchar_t*, _CharT = wchar_t, _Traits = _STL::char_traits<wchar_t>, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_string.h:391: instantiated from ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::_M_range_initialize(_InputIter, _InputIter) [with _InputIter = wchar_t*, _CharT = wchar_t, _Traits = _STL::char_traits<wchar_t>, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_string.c:561: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _STL::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = wchar_t, _Traits = _STL::char_traits<wchar_t>, _Alloc = _STL::allocator<wchar_t>]’
../stlport/stl/_numpunct.h:99: instantiated from here
../stlport/stl/_string.c:532: 错误: ‘class _STL::_STLP_alloc_proxy<wchar_t*, wchar_t, int>’没有名为‘allocate’的成员
../stlport/stl/_string.h: In member function ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(_ForwardIter, _ForwardIter, const _STL::forward_iterator_tag&) [with _ForwardIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
../stlport/stl/_string.h:588: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::_M_append_dispatch(_InputIter, _InputIter, const _STL::__false_type&) [with _InputIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:508: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(_InputIter, _InputIter) [with _InputIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:485: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(const _STL::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.h:552: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.h:559: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.h: In member function ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(_ForwardIter, _ForwardIter, const _STL::forward_iterator_tag&) [with _ForwardIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
../stlport/stl/_string.h:588: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::_M_append_dispatch(_InputIter, _InputIter, const _STL::__false_type&) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:508: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(_InputIter, _InputIter) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:497: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(const _CharT*, size_t) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.h:552: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.h:559: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.h: In member function ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::insert(_CharT*, _ForwardIter, _ForwardIter, const _STL::forward_iterator_tag&) [with _ForwardIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
../stlport/stl/_string.h:817: instantiated from ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::_M_insert_dispatch(_CharT*, _InputIter, _InputIter, const _STL::__false_type&) [with _InputIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:734: instantiated from ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::insert(_CharT*, _InputIter, _InputIter) [with _InputIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:670: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::insert(size_t, const _STL::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.h:790: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.h:799: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
../stlport/stl/_string.h: In member function ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::insert(_CharT*, _ForwardIter, _ForwardIter, const _STL::forward_iterator_tag&) [with _ForwardIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’:
../stlport/stl/_string.h:817: instantiated from ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::_M_insert_dispatch(_CharT*, _InputIter, _InputIter, const _STL::__false_type&) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:734: instantiated from ‘void _STL::basic_string<_CharT, _Traits, _Alloc>::insert(_CharT*, _InputIter, _InputIter) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
../stlport/stl/_string.h:692: instantiated from ‘_STL::basic_string<_CharT, _Traits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::insert(size_t, const _CharT*, size_t) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]’
dll_main.cpp:188: instantiated from here
../stlport/stl/_string.h:790: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘allocate’的成员
../stlport/stl/_string.h:799: 错误: ‘class _STL::_STLP_alloc_proxy<char*, char, int>’没有名为‘deallocate’的成员
make: *** [../lib/obj/GCC-LINUX/ReleaseD/dll_main.o] 错误 1

请求帮助~~ :em20 :em20
hpyyang
帖子: 3
注册时间: 2009-07-03 9:53

Re: 编译STLport-4.6.2.tar.gz出错,help me~~

#2

帖子 hpyyang » 2009-07-24 9:49

补充一下,我知道可以再新立得里面更新,但是考虑到服务器可能用到的不同版本,想自己编译一个stl标准库来方便移植..
头像
upsuper
帖子: 361
注册时间: 2008-06-08 13:31
来自: 福州
联系:

Re: 编译STLport-4.6.2.tar.gz出错,help me~~

#3

帖子 upsuper » 2009-07-24 10:01

是不是要configure……?
欢迎来我的小站:http://upsuper.org
hpyyang
帖子: 3
注册时间: 2009-07-03 9:53

Re: 编译STLport-4.6.2.tar.gz出错,help me~~

#4

帖子 hpyyang » 2009-07-24 10:13

NOTE : Do NOT attempt to run "configure" ! It is deprecated, moved to safe standalone folder
and should be used as a helper to create initial config for a new compiler only.
Your compiler should be recognized by STLport source code with no configuring.
Please edit appropriate configuration header for your compiler
directly if you have to make compiler-specific configuration changes.
注意:不要尝试运行configure命令,该方法已经废弃不用了,已经移到一个安全单独的目录,只能用于作为为新编译器的创建初始配置的辅助手段。您使用的编译器应该能够被STLport的源代码识别,如果需要针对您使用的编译器进行特殊的配置,请直接修改适当的头文件。

INSTALL里面这样说的...
回复