Kitt-AI / snowboy

Future versions with model training module will be maintained through a forked version here: https://github.com/seasalt-ai/snowboy
Other
3.11k stars 1k forks source link

more undefined references to `std::istream::seekg(std::fpos<mbstate_t>)' follow #716

Open xujiaming303 opened 10 months ago

xujiaming303 commented 10 months ago

I used the arm-himix100-linux compilation tool to compile the error as follows. It seems that the stdc++ library is not compatible. Can you solve it?

arm-himix100-linux-g++ -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -mfpu=vfp -mfloat-abi=softfp -I../../ -std=c++11 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Winit-self -rdynamic -DHAVE_POSIX_MEMALIGN -Iportaudio/install/include -O3    demo2.cc  ../..//lib/android/armv7a/libsnowboy-detect.a   -ldl -lm -Wl,-Bstatic -Wl,-Bdynamic -lrt -lpthread  -lstdc++ -o demo2

../..//lib/android/armv7a/libsnowboy-detect.a(snowboy-io.o): In function `snowboy::ReadToken(bool, std::string*, std::istream*)':
snowboy-io.cc:(.text._ZN7snowboy9ReadTokenEbPSsPSi+0x64): undefined reference to `std::istream::seekg(std::fpos<mbstate_t>)'
../..//lib/android/armv7a/libsnowboy-detect.a(snowboy-io.o): In function `snowboy::ExpectToken(bool, char const*, std::istream*)':
snowboy-io.cc:(.text._ZN7snowboy11ExpectTokenEbPKcPSi+0x80): undefined reference to `std::istream::seekg(std::fpos<mbstate_t>)'
../..//lib/android/armv7a/libsnowboy-detect.a(snowboy-io.o): In function `snowboy::PeekToken(bool, std::istream*)':
snowboy-io.cc:(.text._ZN7snowboy9PeekTokenEbPSi+0x68): undefined reference to `std::istream::seekg(std::fpos<mbstate_t>)'
snowboy-io.cc:(.text._ZN7snowboy9PeekTokenEbPSi+0xf0): undefined reference to `std::istream::seekg(std::fpos<mbstate_t>)'
../..//lib/android/armv7a/libsnowboy-detect.a(snowboy-io.o): In function `snowboy::Input::Input(std::string const&)':
snowboy-io.cc:(.text._ZN7snowboy5InputC2ERKSs+0xd4): undefined reference to `std::istream::seekg(std::fpos<mbstate_t>)'
../..//lib/android/armv7a/libsnowboy-detect.a(snowboy-io.o):snowboy-io.cc:(.text._ZN7snowboy5InputC2ERKSs+0x118): more undefined references to `std::istream::seekg(std::fpos<mbstate_t>)' follow

The following is the version information of the compilation tool.

Using built-in specs.
COLLECT_GCC=arm-himix100-linux-g++
COLLECT_LTO_WRAPPER=/opt/hisi-linux/x86-arm/arm-himix100-linux/host_bin/../libexec/gcc/arm-linux-uclibceabi/6.3.0/lto-wrapper
Target: arm-linux-uclibceabi
Configured with: /home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/src/gcc-6.3.0/configure --host=i386-redhat-linux --build=i386-redhat-linux --target=arm-linux-uclibceabi --prefix=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/install --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --disable-libatomic --disable-nls --enable-clocale=gnu --enable-extra-hisi-multilibs --with-sysroot=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/install/target --with-build-sysroot=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/install/target --with-gmp=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/obj/host-libs/usr --with-mpfr=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/obj/host-libs/usr --with-mpc=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/obj/host-libs/usr --disable-libgomp --disable-libquadmath --disable-fixed-point --disable-libsanitizer --disable-libitm --enable-poison-system-directories --with-pkgversion='HC&C V100R002C00B032_20190114'
Thread model: posix
gcc version 6.3.0 (HC&C V100R002C00B032_20190114)