Boost.Beast 应用程序无法编译 :( 警告:在 PIE 中创建 DT_TEXTREL

问题描述 投票:0回答:0

应用程序源代码位于https://nicer.app/NicerAppWebOS/version%206.0.0%20development/NicerAppWebOS-core-Boost.Beast.cpp

我试着编译它

root@parakeet:/home/reneajmveerman/Documents/NicerAppWebOS/core# gcc -I ../libs/boost_1_81_0/ NicerAppWebOS-core-Boost.Beast.cpp &> compile.txt 

令人难以置信的长编译日志的尾巴是:

/usr/bin/ld: /tmp/cc8a2JOV.o:(.data.rel.ro._ZTIN5boost4asio6detail14thread_contextE[_ZTIN5boost4asio6detail14thread_contextE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/bin/ld: /tmp/cc8a2JOV.o:(.data.rel.ro._ZTIN5boost4asio6detail15io_context_bitsE[_ZTIN5boost4asio6detail15io_context_bitsE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/bin/ld: /tmp/cc8a2JOV.o:(.data.rel.ro._ZTIN5boost5beast4http6detail17basic_parser_baseE[_ZTIN5boost5beast4http6detail17basic_parser_baseE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/bin/ld: /tmp/cc8a2JOV.o:(.data.rel.ro._ZTIN5boost4asio6detail28reactive_socket_service_baseE[_ZTIN5boost4asio6detail28reactive_socket_service_baseE]+0x0): more undefined references to `vtable for __cxxabiv1::__class_type_info' follow
/usr/bin/ld: /tmp/cc8a2JOV.o:(.data.rel.local.DW.ref._ZTISt12length_error[DW.ref._ZTISt12length_error]+0x0): undefined reference to `typeinfo for std::length_error'
/usr/bin/ld: /tmp/cc8a2JOV.o:(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status

完整的错误日志位于https://nicer.app/NicerAppWebOS/version%206.0.0%20development/compile.txt

c++ linux gcc boost boost-asio
© www.soinside.com 2019 - 2024. All rights reserved.