查看: 3716|回复: 2

采用openGL ES2 库编译程序

[复制链接]

该用户从未签到

发表于 2012-7-4 17:33:50 | 显示全部楼层 |阅读模式
要在 android 下创建天空盒,需要osg::TexGen 支持于是编译 GLES2 库,重新编译程序会出现如下错误,有没有哪位遇到过这种错误的…请指教啊!

/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/ext/atomicity.h:79: error: undefined reference to

'__gnu_cxx::__exchange_and_add(int volatile*, int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/ext/atomicity.h:79: error: undefined reference to

'__gnu_cxx::__exchange_and_add(int volatile*, int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/ext/atomicity.h:79: error: undefined reference to

'__gnu_cxx::__exchange_and_add(int volatile*, int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/ext/atomicity.h:79: error: undefined reference to

'__gnu_cxx::__exchange_and_add(int volatile*, int)'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/GeometryRecords.cpp:701: error: undefined reference to

'std::basic_istream<char, std::char_traits<char> >::seekg(std::fpos<mbstate_t>)'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/GeometryRecords.cpp:787: error: undefined reference to

'std::basic_istream<char, std::char_traits<char> >::seekg(std::fpos<mbstate_t>)'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/GeometryRecords.cpp:792: error: undefined reference to

'std::basic_istream<char, std::char_traits<char> >::seekg(std::fpos<mbstate_t>)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'VTT for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'vtable for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'vtable for

std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:451: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:451: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:872: error: undefined reference to

'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:451: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:451: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:865: error: undefined reference to

'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:872: error: undefined reference to

'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:865: error: undefined reference to

'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:312: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::basic_string<char,

std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/terrain/ReaderWriterOsgTerrain.cpp:48: error: undefined reference to

'std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_istringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/terrain/ReaderWriterOsgTerrain.cpp:48: error: undefined reference to

'std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_istringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/include/osg/CopyOp:66: error: undefined reference to 'VTT for std::basic_istringstream<char,

std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/include/osg/CopyOp:66: error: undefined reference to 'vtable for std::basic_istringstream<char,

std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/include/osg/CopyOp:66: error: undefined reference to 'vtable for std::basic_stringbuf<char,

std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:312: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::basic_string<char,

std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'VTT for

std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'vtable for

std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'vtable for

std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/osg/ReaderWriterOSG.cpp:313: error: undefined reference to

'std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_istringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/osg/ReaderWriterOSG.cpp:313: error: undefined reference to

'std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_istringstream()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/istream:795: error: undefined reference to 'VTT for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/osg/XmlStreamOperator.h:30: error: undefined reference to

'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/osg/XmlStreamOperator.h:318: error: undefined reference to

'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:567: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str(std::basic_string<char, std::char_traits<char>,

std::allocator<char> > const&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:567: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str(std::basic_string<char, std::char_traits<char>,

std::allocator<char> > const&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:567: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str(std::basic_string<char, std::char_traits<char>,

std::allocator<char> > const&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:567: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str(std::basic_string<char, std::char_traits<char>,

std::allocator<char> > const&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:160: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned int, unsigned int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'VTT for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'vtable for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/streambuf:193: error: undefined reference to 'vtable for

std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/osg/XmlStreamOperator.h:316: error: undefined reference to

'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/home/kdqq/OpenSceneGraph-3.0.1/include/osgDB/Serializer:66: error: undefined reference to 'std::basic_stringstream<char,

std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:160: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned int, unsigned int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:160: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned int, unsigned int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:160: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned int, unsigned int)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/istream:795: error: undefined reference to 'VTT for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/istream:799: error: undefined reference to 'VTT for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/istream:799: error: undefined reference to 'vtable for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgPlugins/ive/DataInputStream.cpp:1318: error: undefined reference to 'vtable for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/istream:799: error: undefined reference to 'vtable for

std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/ostream:91: error: undefined reference to 'VTT for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/ostream:91: error: undefined reference to 'vtable for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_ive.a(DataOutputStream.o)ataOutputStream.cpp:function

typeinfo for osg::Node const*: error: undefined reference to 'vtable for __cxxabiv1::__pointer_type_info'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:312: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::basic_string<char,

std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/basic_string.h:231: error: undefined reference to 'VTT

for std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/basic_string.h:231: error: undefined reference to

'vtable for std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgWrappers/deprecated-dotosg/osg/VertexProgram.cpp:87: error: undefined reference to 'VTT for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgWrappers/deprecated-dotosg/osg/VertexProgram.cpp:87: error: undefined reference to 'vtable for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/sstream:312: error: undefined reference to

'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::basic_string<char,

std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgWrappers/deprecated-dotosg/osg/Shader.cpp:128: error: undefined reference to 'VTT for

std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgWrappers/deprecated-dotosg/osg/Shader.cpp:128: error: undefined reference to 'vtable for

std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgWrappers/deprecated-dotosg/osg/FragmentProgram.cpp:85: error: undefined reference to 'VTT for

std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgWrappers/deprecated-dotosg/osg/FragmentProgram.cpp:85: error: undefined reference to 'vtable

for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1408: error: undefined reference to

'std::_List_node_base::hook(std::_List_node_base*)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1408: error: undefined reference to

'std::_List_node_base::hook(std::_List_node_base*)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1424: error: undefined reference to

'std::_List_node_base::unhook()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1424: error: undefined reference to

'std::_List_node_base::unhook()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1408: error: undefined reference to

'std::_List_node_base::hook(std::_List_node_base*)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1424: error: undefined reference to

'std::_List_node_base::unhook()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1408: error: undefined reference to

'std::_List_node_base::hook(std::_List_node_base*)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1400: error: undefined reference to

'std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1424: error: undefined reference to

'std::_List_node_base::unhook()'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1400: error: undefined reference to

'std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgFX/AnisotropicLighting.cpp:53: error: undefined reference to 'std::type_info::before

(std::type_info const&) const'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgFX/BumpMapping.cpp:170: error: undefined reference to 'std::type_info::before(std::type_info

const&) const'
/home/kdqq/OpenSceneGraph-3.0.1/src/osgFX/SpecularHighlights.cpp:45: error: undefined reference to 'std::type_info::before

(std::type_info const&) const'
/home/kdqq/OpenSceneGraph-3.0.1/include/osgFX/Validator:65: error: undefined reference to 'std::type_info::before(std::type_info

const&) const'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1115: error: undefined reference to

'std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1400: error: undefined reference to

'std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1115: error: undefined reference to

'std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1400: error: undefined reference to

'std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function typeinfo for

osg::NotifyStreamBuffer: error: undefined reference to 'typeinfo for std::basic_stringbuf<char, std::char_traits<char>,

std::allocator<char> >'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NullStreamBuffer: error: undefined reference to 'std::basic_streambuf<char, std::char_traits<char> >::seekpos

(std::fpos<mbstate_t>, std::_Ios_Openmode)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>::setbuf(char*, int)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>::seekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>::showmanyc()'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>::underflow()'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>::pbackfail(int)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Notify.o):Notify.cpp:function vtable for

osg::NotifyStreamBuffer: error: undefined reference to 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>

>:verflow(int)'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosg.a(Referenced.o):Referenced.cpp:function typeinfo for

osg::Referenced*: error: undefined reference to 'vtable for __cxxabiv1::__pointer_type_info'
/home/kdqq/OpenSceneGraph-3.0.1/src/osg/Texture.cpp:1004: error: undefined reference to 'typeinfo for char const*'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_openflight.a

(PaletteRecords.o)aletteRecords.cpp:function construction vtable for std::basic_istringstream<char, std::char_traits<char>,

std::allocator<char> >-in-flt::VertexPool: error: undefined reference to 'typeinfo for std::basic_istringstream<char,

std::char_traits<char>, std::allocator<char> >'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_openflight.a

(PaletteRecords.o):PaletteRecords.cpp:function construction vtable for std::basic_istringstream<char, std::char_traits<char>,

std::allocator<char> >-in-flt::VertexPool: error: undefined reference to 'std::basic_istringstream<char, std::char_traits<char>,

std::allocator<char> >::~basic_istringstream()'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_openflight.a

(PaletteRecords.o):PaletteRecords.cpp:function construction vtable for std::basic_istringstream<char, std::char_traits<char>,

std::allocator<char> >-in-flt::VertexPool: error: undefined reference to 'typeinfo for std::basic_istringstream<char,

std::char_traits<char>, std::allocator<char> >'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_openflight.a

(PaletteRecords.o):PaletteRecords.cpp:function construction vtable for std::basic_istringstream<char, std::char_traits<char>,

std::allocator<char> >-in-flt::VertexPool: error: undefined reference to 'virtual thunk to std::basic_istringstream<char,

std::char_traits<char>, std::allocator<char> >::~basic_istringstream()'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_openflight.a

(PaletteRecords.o):PaletteRecords.cpp:function construction vtable for std::basic_istringstream<char, std::char_traits<char>,

std::allocator<char> >-in-flt::VertexPool: error: undefined reference to 'virtual thunk to std::basic_istringstream<char,

std::char_traits<char>, std::allocator<char> >::~basic_istringstream()'
/home/dong/Android/OpenSceneGraph-3.0.1/osginstall/obj/local/armeabi/libosgdb_openflight.a

(PaletteRecords.o):PaletteRecords.cpp:function typeinfo for flt::VertexPool: error: undefined reference to 'typeinfo for

std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1115: error: undefined reference to

'std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)'
/home/kdqq/Android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_list.h:1115: error: undefined reference to

'std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)'
collect2: ld returned 1 exit status

该用户从未签到

发表于 2012-7-10 09:36:03 | 显示全部楼层
我无法猜测,如果您是在linux下面用ndk-build的话,注意它自己有一个经典的stl的bug,具体解决方案可以网上查一下

该用户从未签到

发表于 2013-1-2 16:33:18 | 显示全部楼层
array 发表于 2012-7-10 09:36
我无法猜测,如果您是在linux下面用ndk-build的话,注意它自己有一个经典的stl的bug,具体解决方案可以网上 ...

array 你好~
你现在就在linux下面用ndk-build,同样遇到了stl的问题,所示的log大概是
undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned int, unsigned int)'
这样的错误,但是还没有解决~
不知您说的经典的bug是指哪个?大概给个提示就行,我看看我是不是见过~
我用的ndkr8
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表