referenced from 链接不上库的问题

  "_uncompress", referenced from:
      qUncompress(unsigned char const*, int) in xxx
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

搜索"_uncompress", referenced from
报错原因:缺少libz.tbd


referenced from 链接不上库的问题_第1张图片
image.png
   google::protobuf::DescriptorBuilder::AddSymbol(std::__1::basic_string, std::__1::allocator > const&, void const*, std::__1::basic_string, std::__1::allocator > const&, google::protobuf::Message const&, google::protobuf::Symbol) in AuctionLivingSDK(descriptor.o)
      google::protobuf::DescriptorBuilder::AddPackage(std::__1::basic_string, std::__1::allocator > const&, google::protobuf::Message const&, google::protobuf::FileDescriptor const*) in AuctionLivingSDK(descriptor.o)
      google::protobuf::FieldDescriptor::InternalTypeOnceInit() const in AuctionLivingSDK(descriptor.o)
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
referenced from 链接不上库的问题_第2张图片
image.png

报错原因:因为是引擎代码是c++混编代码,报错中看到好多c++函数,所以缺少libc++.tbd,上面的图片加c++的库

总结: referenced from 链接不上库的问题在你的库没问题search路径没问题,那有可能是这个库所依赖的库没有在你run的工程中配置。

你可能感兴趣的:(referenced from 链接不上库的问题)