生成时,链接器抛出此错误:
错误:
/home/m3/repos/editor/editorlib/src/clipper/build//libclipper.a(clipper.cpp.o):错误:在创建共享对象时不能使用针对符号`_ZNKSt6vectorIN10ClipperLib8PolyNodeESaIS1_EE4sizeEv‘的
重新定位R_X86_64_PC32;使用-fPIC重新编译
我通过以下命令构建了libclipper.a:
cd editorlib/src/clipper
mkdir build
cd build/
cmake ..
cmake --build . --config Debug
cmake --build . --config Release试过
一种可能是调试版本不匹配,但据我所查,这并不是一个问题。
可能是什么原因?
https://stackoverflow.com/questions/66194671
复制相似问题