我正在開發一個iPad應用程序,其中包含2個第三方靜態庫。這兩個庫中的對象文件的名稱是相同的。在構建應用程序我得到如何在其中包含具有相同名稱的靜態庫的OBJECT文件?
「蘋果馬赫-O(ID)錯誤」
,因爲目標文件的這些2個庫相同的名字。 如何解決這個問題?
錯誤的樣子:
ld: duplicate symbol _T_strcpy in /Users/indiait-supportservices/Desktop/untitled folder/Universal/lib/simulator/libSecurIDLib.a(mem.o) and /Users/indiait-supportservices/Library/Developer/Xcode/DerivedData/ReceiverForiOS-aqpprpcivvjjadbsutqqmtjsoczk/Build/Intermediates/ReceiverForiOS.build/Debug-iphonesimulator/myApp iPad.build/Objects-normal/i386/pdcrypte2.o for architecture i386
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2
failed with exit code 1.
在我看來,它是一個重複的符號,而不是重複的對象文件名。 –
@丹尼爾:是丹尼爾它是一個重複的符號。你能告訴我如何解決這個問題嗎? – Micheal
等待解決方案。Plz任何人都有一些建議? – Micheal