Libjs_static.a(jscntxt.o)(.text+0xb8c): error: undefined reference to 'std::ios_base::ios_base()


#1

when I build cocos2d-js spiderMonkey with ndk, errors occur:

external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xb8c): error: undefined reference to 'std::ios_base::ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xbe4): error: undefined reference to 'std::basic_ios<char, std::char_traits >::init(std::basic_streambuf<char, std::char_traits >)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xc04): error: undefined reference to 'std::basic_filebuf<char, std::char_traits >::basic_filebuf()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xc10): error: undefined reference to 'std::basic_ios<char, std::char_traits >::init(std::basic_streambuf<char, std::char_traits >
)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xc24): error: undefined reference to 'std::basic_filebuf<char, std::char_traits >::open(char const*, std::_Ios_Openmode)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xc54): error: undefined reference to 'std::basic_ios<char, std::char_traits >::clear(std::_Ios_Iostate)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xc8c): error: undefined reference to 'std::basic_istream<char, std::char_traits >& std::getline<char, std::char_traits, std::allocator >(std::basic_istream<char, std::char_traits >&, std::basic_string<char, std::char_traits, std::allocator >&, char)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xcc0): error: undefined reference to 'std::string::find(char const*, unsigned int, unsigned int) const’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xce0): error: undefined reference to 'std::string::assign(char const*, unsigned int)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xce8): error: undefined reference to 'std::ios_base::ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xd30): error: undefined reference to 'std::basic_ios<char, std::char_traits >::init(std::basic_streambuf<char, std::char_traits >)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xd48): error: undefined reference to 'std::basic_filebuf<char, std::char_traits >::basic_filebuf()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xd54): error: undefined reference to 'std::basic_ios<char, std::char_traits >::init(std::basic_streambuf<char, std::char_traits >
)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xd68): error: undefined reference to 'std::basic_filebuf<char, std::char_traits >::open(char const*, std::_Ios_Openmode)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xd9c): error: undefined reference to 'std::basic_ios<char, std::char_traits >::clear(std::_Ios_Iostate)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xdb4): error: undefined reference to 'std::string::find(char const*, unsigned int, unsigned int) const’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xdf0): error: undefined reference to 'std::ctype::_M_widen_init() const’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xe18): error: undefined reference to 'std::basic_istream<char, std::char_traits >& std::getline<char, std::char_traits, std::allocator >(std::basic_istream<char, std::char_traits >&, std::basic_string<char, std::char_traits, std::allocator >&, char)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xe74): error: undefined reference to 'std::basic_filebuf<char, std::char_traits >::close()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xe7c): error: undefined reference to 'std::__basic_file::~__basic_file()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xe94): error: undefined reference to 'std::locale::~locale()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xeb8): error: undefined reference to 'std::ios_base::~ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xec8): error: undefined reference to 'std::ctype::_M_widen_init() const’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xf2c): error: undefined reference to 'std::basic_filebuf<char, std::char_traits >::close()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xf34): error: undefined reference to 'std::__basic_file::~__basic_file()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xf44): error: undefined reference to 'std::locale::~locale()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xf68): error: undefined reference to 'std::ios_base::~ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0xfb4): error: undefined reference to 'std::string::_Rep::_M_destroy(std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x100c): error: undefined reference to 'std::string::find(char const*, unsigned int, unsigned int) const’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x1044): error: undefined reference to 'std::__throw_bad_cast()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x1050): error: undefined reference to 'std::string::Rep::S_empty_rep_storage’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x1054): error: undefined reference to ‘vtable for std::basic_ios<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x1058): error: undefined reference to 'VTT for std::basic_ifstream<char, std::char_traits >'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x105c): error: undefined reference to ‘vtable for std::basic_ifstream<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x1088): error: undefined reference to ‘vtable for std::basic_filebuf<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(jscntxt.o)(.text+0x108c): error: undefined reference to ‘vtable for std::basic_streambuf<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Compression.o):function js::Compressor::~Compressor(): error: undefined reference to 'deflateEnd’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Compression.o):function js::Compressor::init(): error: undefined reference to 'deflateInit

android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Compression.o):function js::Compressor::compressMore(): error: undefined reference to 'deflate’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Compression.o):function js::DecompressString(unsigned char const*, unsigned int, unsigned char*, unsigned int): error: undefined reference to 'inflateInit

android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Compression.o):function js::DecompressString(unsigned char const*, unsigned int, unsigned char*, unsigned int): error: undefined reference to 'inflate’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Compression.o):function js::DecompressString(unsigned char const*, unsigned int, unsigned char*, unsigned int): error: undefined reference to 'inflateEnd’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o)(.text+0x2c): error: undefined reference to 'std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o)(.text+0x98): error: undefined reference to 'std::__throw_logic_error(char const*)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o)(.text+0xb0): error: undefined reference to 'std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o)(.text+0xc4): error: undefined reference to 'std::string::_Rep::_S_empty_rep_storage’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o)(.text+0xc8): error: undefined reference to 'std::string::_Rep::_S_empty_rep_storage’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(double): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::ios_base::ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::locale::locale()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::ostream& std::ostream::_M_insert(long long)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::swap(std::string&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::locale::~locale()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::ios_base::~ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::swap(std::string&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::_Rep::_M_destroy(std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::assign(std::string const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::_Rep::_M_destroy(std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::_Rep::_M_destroy(std::allocator const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to ‘vtable for std::basic_ios<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'VTT for std::basic_ostringstream<char, std::char_traits, std::allocator >'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to ‘vtable for std::basic_ostringstream<char, std::char_traits, std::allocator >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to ‘vtable for std::basic_streambuf<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to ‘vtable for std::basic_stringbuf<char, std::char_traits, std::allocator >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(long long): error: undefined reference to 'std::string::_Rep::_S_empty_rep_storage’
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::ios_base::ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::locale::locale()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::ostream& std::ostream::_M_insert(unsigned long long)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::string::swap(std::string&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::locale::~locale()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::ios_base::~ios_base()'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::string::swap(std::string&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to 'std::string::assign(std::string const&)'
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to ‘vtable for std::basic_ios<char, std::char_traits >’
/adt-bundle-mac-x86_64-20140702/android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/…/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
android/jni/…/…/…/external/spidermonkey/prebuilt/android/armeabi/libjs_static.a(Decimal.o):function mozToString(unsigned long long): error: undefined reference to ‘VTT for std::basic_ostringstream<char, std::char_traits, std::allocator >’

anyone can help me?Thanks