我一直在盯着和谷歌搜索,但我看不到我做了什么。
我有一个在 32 位机器上工作的项目。我刚刚将存储库拉到 64 位机器(这是该项目的原始开发机器),现在在尝试构建测试二进制文件时出现以下链接错误
/usr/bin/ld: error: /usr/lib/libboost_test_exec_monitor-mt.a(unit_test_log.o): requires dynamic R_X86_64_PC32 reloc against 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)' which may overflow at runtime; recompile with -fPIC
/usr/bin/ld: error: /usr/lib/libboost_test_exec_monitor-mt.a(unit_test_log.o): requires unsupported dynamic reloc 11; recompile with -fPIC
我真的看不出我可以改变什么。boost 库是直接从 ubuntu 存储库中提取的。任何有线索的人。