I build wireshark on linux with gcc5.2.0,has link err

asked 2019-07-28 01:33:39 +0000

updated 2019-07-28 01:56:00 +0000

Guy Harris gravatar image

Errors:

Linking CXX executable run/wireshark
ui/qt/CMakeFiles/qtui.dir/extcap_argument.cpp.o:在函数‘_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC4EPKcmRKS3_’中:
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:对‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’未定义的引用
ui/qt/CMakeFiles/qtui.dir/extcap_options_dialog.cpp.o:在函数‘void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)’中:
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:对‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’未定义的引用
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:对‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’undefine reference
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:对‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’undefine reference
ui/qt/CMakeFiles/qtui.dir/extcap_options_dialog.cpp.o:在函数‘_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC4EPKcmRKS3_’中:
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:对‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’undefine reference
ui/qt/CMakeFiles/qtui.dir/extcap_options_dialog.cpp.o:/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222: more undefined references to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' follow
collect2: 错误:ld 返回 1
edit retag flag offensive close merge delete

Comments

For the benefit of those of us not fluent in written Chinese, according to Google Translate, that's approximately:

Linking CXX executable run/wireshark
ui/qt/CMakeFiles/qtui.dir/extcap_argument.cpp.o:In function‘_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC4EPKcmRKS3_’in:
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:Correct‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’Undefined reference
ui/qt/CMakeFiles/qtui.dir/extcap_options_dialog.cpp.o:In function‘void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)’in:
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:Correct‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’Undefined reference
/usr/local/include/c++/5.2.0/bits/basic_string.tcc:222:Correct‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)’undefine reference
/usr/local/include/c ...
(more)
Guy Harris gravatar imageGuy Harris ( 2019-07-28 02:01:05 +0000 )edit