高中生
最后登录1970-1-1
在线时间 小时
注册时间2016-10-6
|
楼主 |
发表于 2020-1-6 15:06:04
|
显示全部楼层
以上错误是g++版本的问题,刚才是4.8.5版本,那个原子操作的函数好像到4.9以上才支持。
切换到g++7.4.0,再make,又有新的报错:
../libuuu/libuuc_s.a(buffer.cpp.o):在函数‘FSBackFile::get_file_timesample(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long*)’中:
buffer.cpp.text+0xa81):对‘set_last_err_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’未定义的引用
../libuuu/libuuc_s.a(buffer.cpp.o):在函数‘FileBuffer::reload(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)’中:
buffer.cpp.text+0x1756):对‘set_last_err_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’未定义的引用
../libuuu/libuuc_s.a(buffer.cpp.o):在函数‘FSHttp::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::shared_ptr<FileBuffer>, bool)’中:
buffer.cpp.text+0x1fa5):对‘set_last_err_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’未定义的引用
../libuuu/libuuc_s.a(buffer.cpp.o):在函数‘FSZip::exist(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’中:
buffer.cpp.text+0x253b):对‘set_last_err_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’未定义的引用
../libuuu/libuuc_s.a(buffer.cpp.o):在函数‘FileBuffer::request_data(unsigned long)’中:
buffer.cpp.text+0x3889):对‘set_last_err_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)’未定义的引用
../libuuu/libuuc_s.a(buffer.cpp.o):buffer.cpp.text+0x38cd): 跟着更多未定义的参考到 set_last_err_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
collect2: error: ld returned 1 exit status
uuu/CMakeFiles/uuu.dir/build.make:194: recipe for target 'uuu/uuu' failed
make[2]: *** [uuu/uuu] Error 1
CMakeFiles/Makefile2:140: recipe for target 'uuu/CMakeFiles/uuu.dir/all' failed
make[1]: *** [uuu/CMakeFiles/uuu.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
|
|