重复的符号链接器错误XCode 3.2.5 - 链接器似乎以不同的方式引用相同的文件

时间:2011-02-04 22:31:18

标签: iphone xcode linker three20 ld

我收到以下错误:

  

ld:重复的符号   _TTCreateNonRetainingArray in /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20Core.a(TTGlobalCore.o)   和   ../three20/Build/Products/Debug-iphoneos/libThree20Core.a(TTGlobalCore.o)   collect2:ld返回1退出状态   命令   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2   退出代码1失败

它似乎是指绝对和相对路径中的相同.o。

  

Ld的   建立/ DFJ.build /调试-的iPhoneOS / DFJ.build /对象 - 正常/的ARMv6 / DFJ   正常的armv6 cd   / Users / macuser / Dropbox / DFJ / DFJ setenv   IPHONEOS_DEPLOYMENT_TARGET 3.2 setenv   路径   “/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2   -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk   -L /用户/ MACUSER /升降梭箱/ DFJ / DFJ /建造/调试-的iPhoneOS   -F /用户/ MACUSER /升降梭箱/ DFJ / DFJ /建造/调试-的iPhoneOS   -F /用户/ MACUSER / Dropbox的/ DFJ / DFJ /../../../下载/ GDATA-的ObjectiveC客户端-1.11.0 /来源/建设/调试   -filelist /Users/macuser/Dropbox/DFJ/DFJ/build/DFJ.build/Debug-iphoneos/DFJ.build/Objects-normal/armv6/DFJ.LinkFileList   -dead_strip -force_load ../three20/Build/Products/Debug-iphoneos/libThree20Core.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20UICommon.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20Launcher.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20UINavigator.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20UI.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20Network.a   -force_load ../three20/Build/Products/Debug-iphoneos/libThree20Style.a   -all_load -miphoneos-version-min = 3.2 /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20Core.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20UICommon.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20Launcher.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20UINavigator.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20UI.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20Network.a   /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20Style.a   -framework QuartzCore -framework Foundation-framework UIKit -framework   CoreGraphics -lsqlite3.0 -framework   MobileCoreServices -lxml2 -framework   安全框架   SystemConfiguration -framework OpenAL   -framework CoreAudio -framework AudioToolbox -o   /Users/macuser/Dropbox/DFJ/DFJ/build/DFJ.build/Debug-iphoneos/DFJ.build/Objects-normal/armv6/DFJ

     

ld:重复的符号   _TTCreateNonRetainingArray in /Users/macuser/Dropbox/DFJ/three20/Build/Products/Debug-iphoneos/libThree20Core.a(TTGlobalCore.o)   和   ../three20/Build/Products/Debug-iphoneos/libThree20Core.a(TTGlobalCore.o)   collect2:ld返回1退出状态   命令   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2   退出代码1失败

1 个答案:

答案 0 :(得分:1)

请参阅Three20 here开发人员的最后一条消息。基本上,下载最新的Three20源并密切关注其README

中描述的步骤

如果您正在关注不是来自开发人员的Three20教程,那么它可能已经过时了。