我用静态库构建我的应用程序链接,发现错误如下
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;