Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Boost 在使用内存清理器链接静态库时引发未定义符号问题_Boost_Uhd_Memory Sanitizer - Fatal编程技术网

Boost 在使用内存清理器链接静态库时引发未定义符号问题

Boost 在使用内存清理器链接静态库时引发未定义符号问题,boost,uhd,memory-sanitizer,Boost,Uhd,Memory Sanitizer,在构建静态库uhd类型并使用带有内存消毒剂标志-fsanize=memory的boost库v1.74链接时,我遇到了以下错误 [ 63%] Built target uhd-types [ 65%] Linking CXX executable ../../bin/unit_tests /usr/bin/ld: ../../lib/libuhd-types.a(device_addr.cpp.o): in function `boost::re_detail_107400::cpp_re

在构建静态库uhd类型并使用带有内存消毒剂标志-fsanize=memory的boost库v1.74链接时,我遇到了以下错误

[ 63%] Built target uhd-types  
[ 65%] Linking CXX executable ../../bin/unit_tests  
/usr/bin/ld: ../../lib/libuhd-types.a(device_addr.cpp.o): in function `boost::re_detail_107400::cpp_regex_traits_implementation<char>::lookup_collatename(char const*, char const*) const':
/root/include/boost/regex/v4/cpp_regex_traits.hpp:680: undefined reference to `boost::re_detail_107400::lookup_default_collate_name(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
/usr/bin/ld: ../../lib/libuhd-types.a(device_addr.cpp.o): in function `boost::re_detail_107400::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::fail(boost::regex_constants::error_type, long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long)':
/root/include/boost/regex/v4/basic_regex_parser.hpp:245: undefined reference to `boost::regex_error::regex_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::regex_constants::error_type, long)'
/usr/bin/ld: ../../lib/libuhd-types.a(device_addr.cpp.o): in function `boost::re_detail_107400::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::fixup_recursions(boost::re_detail_107400::re_syntax_base*)':
/root/include/boost/regex/v4/basic_regex_creator.hpp:788: undefined reference to `boost::regex_error::regex_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::regex_constants::error_type, long)'
/usr/bin/ld: /root//include/boost/regex/v4/basic_regex_creator.hpp:877: undefined reference to `boost::regex_error::regex_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::regex_constants::error_type, long)'
/usr/bin/ld: ../../lib/libuhd-types.a(device_addr.cpp.o): in function `boost::re_detail_107400::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::create_startmaps(boost::re_detail_107400::re_syntax_base*)':
/root/include/boost/regex/v4/basic_regex_creator.hpp:943: undefined reference to `boost::regex_error::regex_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::regex_constants::error_type, long)'
/usr/bin/ld: ../../lib/libuhd-types.a(device_addr.cpp.o): in function `boost::re_detail_107400::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::create_startmap(boost::re_detail_107400::re_syntax_base*, unsigned char*, unsigned int*, unsigned char)':
/root/include/boost/regex/v4/basic_regex_creator.hpp:1156: undefined reference to `boost::regex_error::regex_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::regex_constants::error_type, long)'

clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
[63%]内置目标uhd类型
[65%]链接CXX可执行文件.././bin/unit\u测试
/usr/bin/ld:../../lib/libuhd types.a(device\u addr.cpp.o):在函数“boost::re\u detail\u 107400::cpp\u regex\u traits\u implementation::lookup\u collatename(char const*,char const*)const”中:
/root/include/boost/regex/v4/cpp\u regex\u traits.hpp:680:未定义对“boost::re\u detail\u 107400::lookup\u default\u collate\u name(std::\u 1::basic\u string const&)”的引用
/usr/bin/ld:../../lib/libuhd types.a(device_addr.cpp.o):在函数“boost::re_detail_107400::basic_regex_parser::fail(boost::regex_常量::error_type,long,std:u 1::basic_string,long)”中:
/root/include/boost/regex/v4/basic_regex_parser.hpp:245:未定义对“boost::regex_error::regex_error(std::u 1::basic_string const&,boost::regex_constants::error_type,long)”的引用
/usr/bin/ld:../../lib/libuhd types.a(device_addr.cpp.o):在函数“boost::re_detail_107400::basic_regex_creator::fixup_递归(boost::re_detail_107400::re_syntax_base*)”中:
/root/include/boost/regex/v4/basic_regex_creator.hpp:788:boost::regex_error::regex_error(std::uu 1::basic_string const&,boost::regex_constants::error_type,long)的未定义引用
/usr/bin/ld:/root//include/boost/regex/v4/basic_regex_creator.hpp:877:未定义对“boost::regex_error::regex_error(std::_1::basic_字符串常量&,boost::regex_常量::error_type,long)”的引用
/usr/bin/ld:../../lib/libuhd types.a(device_addr.cpp.o):在函数“boost::re_detail_107400::basic_regex_creator::create_startmap(boost::re_detail_107400::re_syntax_base*)”中:
/root/include/boost/regex/v4/basic_regex_creator.hpp:943:对“boost::regex_error::regex_error(std::_1::basic_string const&,boost::regex_constants::error_type,long)”的未定义引用
/usr/bin/ld:../../lib/libuhd types.a(device_addr.cpp.o):在函数“boost::re_detail_107400::basic_regex_creator::create_startmap(boost::re_detail_107400::re_syntax_base*,unsigned char*,unsigned int*,unsigned char)”中:
/root/include/boost/regex/v4/basic_regex_creator.hpp:1156:对“boost::regex_error::regex_error(std::u 1::basic_string const&,boost::regex_constants::error_type,long)”的未定义引用
clang-10:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我已经使用target\u link\u库将uhd类型链接到boost库中。

a)您是否以root用户身份构建此库?你真的不应该。b)那是哪个版本的UHD?1)我正在以根用户的身份构建内部私有docker映像。2)UHD版本是3.15a)你以根用户的身份构建这个吗?你真的不应该。b)那是哪个版本的UHD?1)我正在以根用户的身份构建私有docker映像。2)UHD版本是3.15