gpt4 book ai didi

objective-c - IOS6构建链接错误

转载 作者:可可西里 更新时间:2023-11-01 05:37:21 24 4
gpt4 key购买 nike

我用静态库构建我的应用程序链接,发现错误如下

Undefined symbols for architecture armv7:
"std::_List_node_base::hook(std::_List_node_base*)", referenced from:
std::list<TSendBuf, std::allocator<TSendBuf> >::_M_insert(std::_List_iterator<TSendBuf>, TSendBuf const&) in libCardAnalyLib1.a(SendRecvThread.o)
"std::_List_node_base::unhook()", referenced from:
std::list<TSendBuf, std::allocator<TSendBuf> >::_M_erase(std::_List_iterator<TSendBuf>) in libCardAnalyLib1.a(SendRecvThread.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

谁能告诉我这是什么错误?谢谢。
应用程序和库中有 C++ 代码。 我的演示应用程序无法链接库,显示此错误,TSendBuf 是

typedef struct {
unsigned char szBuf[1200];//1000 fah char
} TSendBuf;

最佳答案

您可能需要将 libstdc++.dylib 添加到应用程序链接到的框架/二进制文件列表中。

您可以从目标设​​置/“构建阶段”选项卡/“将二进制文件与库链接”部分执行此操作

关于objective-c - IOS6构建链接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13884034/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com