C++ 反向cpp无法再构建,尽管链接,但缺少lbdf
我在arch上,犯了升级的错误 在构建bacward cpp之前,现在我遇到以下错误:C++ 反向cpp无法再构建,尽管链接,但缺少lbdf,c++,compiler-errors,libraries,stack-trace,C++,Compiler Errors,Libraries,Stack Trace,我在arch上,犯了升级的错误 在构建bacward cpp之前,现在我遇到以下错误: ../libraries/backward-cpp/backward.hpp:1357:10: error: ‘bfd_get_section_flags’ was not declared in this scope; did you mean ‘bfd_set_section_flags’? 1357 | if ((bfd_get_section_flags(fobj.handle.get(),
../libraries/backward-cpp/backward.hpp:1357:10: error: ‘bfd_get_section_flags’ was not declared in this scope; did you mean ‘bfd_set_section_flags’?
1357 | if ((bfd_get_section_flags(fobj.handle.get(), section) & SEC_ALLOC) == 0)
| ^~~~~~~~~~~~~~~~~~~~~
| bfd_set_section_flags
../libraries/backward-cpp/backward.hpp:1360:24: error: ‘bfd_get_section_vma’ was not declared in this scope; did you mean ‘bfd_set_section_vma’?
1360 | bfd_vma sec_addr = bfd_get_section_vma(fobj.handle.get(), section);
| ^~~~~~~~~~~~~~~~~~~
| bfd_set_section_vma
../libraries/backward-cpp/backward.hpp:1361:26: error: ‘bfd_get_section_size’ was not declared in this scope; did you mean ‘bfd_set_section_size’?
1361 | bfd_size_type size = bfd_get_section_size(section);
| ^~~~~~~~~~~~~~~~~~~~
| bfd_set_section_size
make[1]: *** [VulkanEngine.make:233: obj/Debug/VulkanDebugging.o] Error 1
make: *** [Makefile:30: VulkanEngine] Error 2
我通过将-lbfd-ldl
作为g++的参数来链接lbdf
和ldl
。根据文档,在包含标题之前,我也在做#向后定义_BFD 1
我不知所措。相应的binutils宏略有变化 您必须从节宏中删除
\u get
,并手动删除fobj.handle.get()
参数:bfd\u get\u节标志(fobj.handle.get(),section)
到bfd\u节标志(section)