Undefined symbols for architecture x86_64:"xxxxxx", referenced from:
2016-12-06 13:38
881 查看
问题:
Undefined symbols for architecture x86_64:
"VZNetwork::VZSocket::socket_instance", referenced from:
VZNetwork::VZSocket::initSocket() in VZSocket.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案:
socket_instance
变量是静态的,类型是int, 去掉static就可以了
Undefined symbols for architecture x86_64:
"VZNetwork::VZSocket::socket_instance", referenced from:
VZNetwork::VZSocket::initSocket() in VZSocket.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案:
socket_instance
变量是静态的,类型是int, 去掉static就可以了
相关文章推荐
- Undefined symbols for architecture x86_64: "_SDL_main", referenced from:报错
- Undefined symbols for architecture x86_64:和"_OBJC_CLASS_$_xx", referenced from:问题解决方法
- 友盟微博分享Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from: objc-class-ref in libWeiboSDK.a
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_JSContext", referenced from: ...........
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_WKWebView", referenced from: objc-
- Undefined symbols for architecture x86_64: "_res_9_setservers", referenced from: _setup_dns_
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_LMZArrayDataSource", referenced from:
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_JSContext", referenced from: ...........
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_MAMapServices", referenced from: o
- Undefined symbols for architecture x86_64:“_glutInit”, referenced from:_main in main.o / Netbeans on
- 使用支付宝集成支付报错 Undefined symbols for architecture x86_64: "_BIO_ctrl", referenced from: _rsa_si
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_EditRecordViewController", referenced fr
- QtCreator 提示错误:Undefined symbols for architecture x86_64: "vtable for XXX", referenced from
- 【iOS-bug】- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_XCBankChooseItemCell"
- 使用百度地图2.9sdk Undefined symbols for architecture x86_64: "_NSBackgroundColorAttributeName", 问题解决方法
- Undefined symbols for architecture x86_64: "_crc32", 问题的解决
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_The49DayPersonalFullscreenGiftModel", referenced from: objc-class-ref in The49DayPersonalRoomGiftModel.o ld: symbol(s) not found for a
- MAC OS用ffmpeg编译代码出现的Undefined symbols for architecture x86_64: "_CGLGetCurrentContext", referenced
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GiftAnimationView"
- Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from