XCODE中的重复符号_winSocks [英] Duplicate Symbol _winSocks in XCODE

查看:87
本文介绍了XCODE中的重复符号_winSocks的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/users/..../xxx.o/users/..../yyy.o
中出现重复符号_winsocks时出现错误
谁能告诉我如何避免XCODE中的此错误?

I am having an error as duplicate symbol _winsocks in /users/..../xxx.o and /users/..../yyy.o

Can any one tell me how to avoid this error in XCODE?

推荐答案

如果我们尝试在另一个函数的对象内部创建一个函数的对象,通常会发生这种情况再次创建第一个函数的对象(当对象创建进入无限循环时).因此,与其创建另一个对象,不如使用objective c中的self.来使用当前对象.
this thing generally happens if we try to create object of one function inside object of another function,which is again creating object of first function(as the object creation enters into infinite loop). So instead of creating another object u should use the current object by using self. in objective c.


这篇关于XCODE中的重复符号_winSocks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆