Ros环境下科大讯飞语音识别catkin_make后出现一串undefined reference to... 编译无法通过

[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target _baidu_speech_generate_messages_check_deps_TTS_message
[  8%] Built target baidu_speech_generate_messages_py
[  8%] Built target std_msgs_generate_messages_eus
[ 17%] Built target baidu_speech_generate_messages_eus
[ 17%] Built target std_msgs_generate_messages_cpp
[ 21%] Built target baidu_speech_generate_messages_cpp
[ 21%] Built target std_msgs_generate_messages_lisp
[ 26%] Built target baidu_speech_generate_messages_lisp
[ 26%] Built target std_msgs_generate_messages_nodejs
[ 30%] Built target baidu_speech_generate_messages_nodejs
[ 30%] Built target baidu_speech_generate_messages
make[2]: Warning: File '/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so' has modification time 51987 s in the future
[ 34%] Linking C executable /home/luke/catkin_ws/devel/lib/xfei_asr/tts_sample
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for std::bad_cast'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::pbackfail(int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::xsgetn(char*, int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_free_exception'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::underflow()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `operator new[](unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_begin_catch'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::bad_cast::~bad_cast()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `operator delete[](void*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for std::basic_streambuf<char, std::char_traits<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `virtual thunk to std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `VTT for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::showmanyc()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::_M_leak_hard()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::rfind(char, unsigned int) const'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__throw_length_error(char const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ios_base::ios_base()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_guard_release'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `operator delete(void*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::replace(unsigned int, unsigned int, char const*, unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned int, unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__throw_bad_cast()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::numpunct<char> const& std::use_facet<std::numpunct<char> >(std::locale const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::uflow()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::showmanyc()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__basic_file<char>::~__basic_file()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_call_unexpected'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::locale::locale()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_pure_virtual'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for std::ostream'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for char const*'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::reserve(unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for float'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `VTT for std::basic_ifstream<char, std::char_traits<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::locale::operator==(std::locale const&) const'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_allocate_exception'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__throw_out_of_range(char const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__gxx_personality_v0'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::_Rep::_S_empty_rep_storage'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ctype<char>::_M_widen_init() const'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::compare(char const*) const'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for bool'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::~basic_filebuf()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_throw'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_guard_abort'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::append(char const*, unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__throw_bad_alloc()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::append(std::string const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ios_base::Init::~Init()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::_Rep::_M_dispose(std::allocator<char> const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_end_catch'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_guard_acquire'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `typeinfo for int'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_filebuf<char, std::char_traits<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::locale::~locale()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::underflow()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::fill() const'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::setbuf(char*, int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::pbackfail(int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ios_base::Init::Init()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::seekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ios_base::~ios_base()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ostream& std::ostream::_M_insert<long long>(long long)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__dynamic_cast'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__throw_logic_error(char const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for std::basic_ifstream<char, std::char_traits<char> >'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `virtual thunk to std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::assign(char const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::assign(std::string const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::sync()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::setbuf(char*, int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::rdbuf(std::basic_streambuf<char, std::char_traits<char> >*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::close()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::imbue(std::locale const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::__detail::_List_node_base::swap(std::__detail::_List_node_base&, std::__detail::_List_node_base&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::istream::getline(char*, int, char)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ostream& std::ostream::_M_insert<bool>(bool)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ostream::operator<<(int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::resize(unsigned int, char)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `__cxa_rethrow'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `operator new(unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::locale::classic()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::assign(char const*, unsigned int)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ostream& std::ostream::_M_insert<double>(double)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()'
/home/luke/catkin_ws/src/xfei_asr/lib/libmsc.so: undefined reference to `std::string::_M_mutate(unsigned int, unsigned int, unsigned int)'
collect2: error: ld returned 1 exit status
xfei_asr/CMakeFiles/tts_sample.dir/build.make:114: recipe for target '/home/luke/catkin_ws/devel/lib/xfei_asr/tts_sample' failed
make[2]: *** [/home/luke/catkin_ws/devel/lib/xfei_asr/tts_sample] Error 1
CMakeFiles/Makefile2:1361: recipe for target 'xfei_asr/CMakeFiles/tts_sample.dir/all' failed
make[1]: *** [xfei_asr/CMakeFiles/tts_sample.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed

 
已邀请:

Tony

赞同来自:

我查了说是可能跟gcc编译器有关,不知道在哪里出了问题,求大神看看

要回复问题请先登录注册