ld: 1 duplicate symbol for architecture *** clang: error: linker command failed with exit code 1 (u

转载 2016年09月18日 18:05:29

duplicate symbol _x in:

    /Users/app/Library/Developer/Xcode/DerivedData/ChinaEnterprise-evaxoeaznbkdasfxetdeypsnzxtx/Build/Intermediates/ChinaEnterprise.build/Debug-iphonesimulator/ChinaEnterprise.build/Objects-normal/i386/CompaniesViewController.o

    /Users/app/Library/Developer/Xcode/DerivedData/ChinaEnterprise-evaxoeaznbkdasfxetdeypsnzxtx/Build/Intermediates/ChinaEnterprise.build/Debug-iphonesimulator/ChinaEnterprise.build/Objects-normal/i386/IndexMainViewController.o

ld: 1 duplicate symbol for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)





这个常常遇到的问题,,,坑,

_x重复,搜索这两个类的x会发现重复,去掉一个就可以

我遇到的是静态变量重复const 

WinCVS与CVSNT简明使用手则(一)

  WinCVS与CVSNT简明使用手则(作者:Jackey,网址:www.kuihua.net)1       前言:CVS是版本控制的利器,目前在Linux和Windows下都有不同版本;但是国内...
  • ycw
  • ycw
  • 2003-12-29 12:20:00
  • 6540

ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1

目标文件重复,通过 target - build phases - compile sources 找出重复的类。
  • vincerce
  • vincerce
  • 2015-12-25 16:14:21
  • 446

duplicate symbols for architecture arm64 解决办法

出现duplicate symbols for architecture arm64 , 找到对应提示的文件,到Build Phases里的compile sources 删除,就ok了,非常简单,请...
  • qq_27873515
  • qq_27873515
  • 2017-02-13 10:44:12
  • 120

ld: 6 duplicate symbols for architecture x86_64 clang: error: linker command的解决方法

ld: 6 duplicate symbols for architecture x86_64 clang: error: linker command的解决方法
  • qq_34101611
  • qq_34101611
  • 2016-07-05 22:04:15
  • 976

芒果iOS开发之duplicate symbols for architecture x86_64错误

在我们写代码过程中可能会经常遇到这样一个错误: ld: 4 duplicate symbols for architecture x86_64 clang: error: linker command...
  • CrazyZhang1990
  • CrazyZhang1990
  • 2015-11-02 14:55:11
  • 44118

IOS 错误:ld:2 duplicate symbols for architecture arm64 clang:error:linker commang failed with exit ...

IOS 错误:ld:2 duplicate symbols for architecture arm64 clang:error:linker commang failed with exit cod...
  • u014640208
  • u014640208
  • 2015-07-02 08:53:12
  • 6397

链接报错:ld: 1 duplicate symbol for architecture x86_64

ld: 1 duplicate symbol for architecture x86_64 出现错误的原因是:重复定义。一、问题原因完整的报错信息: ld: 1 duplicate symbol...
  • libing_zeng
  • libing_zeng
  • 2017-10-27 10:28:55
  • 370

xcode上编译c语言程序报错:ld: x duplicate symbol for architecture x86_64 clang: error: linker command failed

最近使用Xcode编译C语言程序,发现在多文件运行时总会有error提示:duplicate symbol _fp in: /Users/taiyoshimichi/Library/Devel...
  • yutaotst
  • yutaotst
  • 2017-01-16 14:36:45
  • 905

重复引用错误:duplicate symbols for architecture x86_64

duplicate symbols for architecture x86_64、cannot parse the debug map for
  • LuohanCC
  • LuohanCC
  • 2015-11-18 14:43:48
  • 4046

duplicate symbol _xxx in:ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command

提示如图所示,问题中的XXX代表出错的文件 我这里的是main文件重复,导致的错误。图中圈出来的部分 解决方法见下图,直接把重复的文件删除任意一个即可(我这里是两个中的内容一样)...
  • Boyqicheng
  • Boyqicheng
  • 2016-09-23 17:33:53
  • 1197
收藏助手
不良信息举报
您举报文章:ld: 1 duplicate symbol for architecture *** clang: error: linker command failed with exit code 1 (u
举报原因:
原因补充:

(最多只允许输入30个字)