且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

clang:错误:链接器命令失败,退出代码1(在xcode5.1.1中使用-v查看调用)

更新时间:2023-11-10 16:43:16

请不要在多个论坛中发布相同的问题。


它表示你有一些重复的变量或属性
 _ squareOfDistanceBetweenPoints 

 _ n iceNum 

等(如上所述)..请检查包含所有方法的每个类..检查是否调用正确的类(只调用.h类)..只是它.. ^^


Hi
I am getting the following error, when i try to build the xcode project

duplicate symbol _squareOfDistanceBetweenPoints in:
/Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(AGSCPTUtilities.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(CPTUtilities.o)
duplicate symbol _niceNum in:
    /Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(AGSCPTAxis.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(CPTAxis.o)
duplicate symbol _AddRoundedRectPath in:
    /Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(AGSCPTPathExtensions.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(CPTPathExtensions.o)
duplicate symbol _CreateRoundedRectPath in:
    /Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(AGSCPTPathExtensions.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(CPTPathExtensions.o)
duplicate symbol _dependentCoord in:
    /Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(AGSCPTTradingRangePlot.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(CPTTradingRangePlot.o)
duplicate symbol _independentCoord in:
    /Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(AGSCPTTradingRangePlot.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(CPTTradingRangePlot.o)
duplicate symbol _MyCGPathApplierFunc in:
    /Users/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(NSCoderExtensions.o)
    /Users/project/map/libCorePlot-CocoaTouch.a(NSCoderExtensions.o)
ld: 7 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Thanks in advance

Please do not post the same question in multiple forums.


it says that you have a few duplicated variable or property
_squareOfDistanceBetweenPoints

,

_niceNum

, etc(as mentioned above).. please check every class that contains all of that method.. check whether it calling proper class (only call .h class).. just it.. ^^