Create a universal static library
Create a universal static library
- Subject: Create a universal static library
- From: "Lilir Chavez" <email@hidden>
- Date: Fri, 23 Nov 2007 16:08:20 -0600
Hi, All!
I try to get a universal static library (a .a file). I did the same
steps using to create an universal dynamic library. I mean, in each .a
file I change the "architectures" values to "ppc i386". Each XCode
project that creates a .a file compiles alone.
When I merged all of them in a jnilib project (that is the final
product) I got a lot of link errors (these look like the .a library
was not compiled):
ld: Undefined symbols:
__ZNSi5seekgElSt12_Ios_Seekdir
__ZNSs4_Rep9_S_createEmRKSaIcE
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
__ZNSs20_S_empty_rep_storageE
__ZNSaIcED4Ev
__ZNSaIwED4Ev
__ZNSbIwSt11char_traitsIwESaIwEE20_S_empty_rep_storageE
__ZNSt15basic_streambufIcSt11char_traitsIcEEC4Ev
__ZNSt15basic_streambufIcSt11char_traitsIcEED4Ev
__ZNSt15basic_streambufIwSt11char_traitsIwEEC4Ev
__ZNSt15basic_streambufIwSt11char_traitsIwEED4Ev
__ZNSt6locale2idC1Ev
__ZNSt6locale5_Impl16_M_install_facetEPKNS_2idEPNS_5facetE
__ZNSt6locale5facetC2Em
__ZNSo6sentrycvbEv
__ZNSo5seekpElSt12_Ios_Seekdir
__ZNSt6locale2id12_S_highwaterE
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib84PlusSE.o)
reference to undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib84PlusSE.o)
reference to undefined __ZNSs4_Rep9_S_createEmRKSaIcE
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib84PlusSE.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib84PlusSE.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LibCalculator.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LibCalculator.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LibVarImpl.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LibVarImpl.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(exceptions.o) reference
to undefined __ZNSs20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(thread.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(thread.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LibUSBStream_mac.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LibUSBStream_mac.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Chameleon.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Chameleon.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(path_posix_windows.o)
reference to undefined __ZNSs20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(convenience.o)
reference to undefined __ZNSs20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib83PTalkImpl.o)
reference to undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib83PTalkImpl.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Lib83PTalkImpl.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(operations_posix_windows.o)
reference to undefined __ZNSs20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(LcdDriver.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LcdDriver.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSaIcED4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSaIwED4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSbIwSt11char_traitsIwESaIwEE20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSs20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt15basic_streambufIcSt11char_traitsIcEEC4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt15basic_streambufIcSt11char_traitsIcEED4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt15basic_streambufIwSt11char_traitsIwEEC4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt15basic_streambufIwSt11char_traitsIwEED4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt6locale2idC1Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt6locale5_Impl16_M_install_facetEPKNS_2idEPNS_5facetE
../libMyStaticLib_xcode/build/libMyStaticLib.a(greg_month.o) reference
to undefined __ZNSt6locale5facetC2Em
../libMyStaticLib_xcode/build/libMyStaticLib.a(Memory.o) reference to
undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(Memory.o) reference to
undefined __ZNSo6sentrycvbEv
../libMyStaticLib_xcode/build/libMyStaticLib.a(Memory.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Memory.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LoadMod.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(LoadMod.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Morpheus.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Morpheus.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(morpheuskeys.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(morpheuskeys.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Z80thread.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Z80thread.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(exception.o) reference
to undefined __ZNSaIcED4Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(exception.o) reference
to undefined __ZNSs20_S_empty_rep_storageE
../libMyStaticLib_xcode/build/libMyStaticLib.a(TConverter.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(TConverter.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusUnit.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusUnit.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SGdb83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SGdb83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SPic83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SPic83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusUtility.o)
reference to undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusUtility.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusUtility.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SGroup83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SGroup83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SMatrix83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SMatrix83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SString83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SString83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SRealList83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SRealList83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(STableSetup83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(STableSetup83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SCertificate83PlusData.o)
reference to undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(SComplexList83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SComplexList83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SUserZoomWin83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SUserZoomWin83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SWindowRange83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SWindowRange83PlusData.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusFileFieldUtility.o)
reference to undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusFileFieldUtility.o)
reference to undefined __ZNSo5seekpElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusFileFieldUtility.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(T83PlusFileFieldUtility.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(GateArray.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(GateArray.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Z80.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Z80.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83GetDirectoryFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83GetDirectoryFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusData.o)
reference to undefined __ZNSt6locale2id12_S_highwaterE
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusData.o)
reference to undefined __ZNSt6locale2idC1Ev
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusData.o)
reference to undefined __ZNSt6locale5facetC2Em
../libMyStaticLib_xcode/build/libMyStaticLib.a(Complex.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Complex.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Ram.o) reference to
undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(Ram.o) reference to
undefined __ZNSo6sentrycvbEv
../libMyStaticLib_xcode/build/libMyStaticLib.a(Ram.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Ram.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Flash.o) reference to
undefined __ZNSi5seekgElSt12_Ios_Seekdir
../libMyStaticLib_xcode/build/libMyStaticLib.a(Flash.o) reference to
undefined __ZNSo6sentrycvbEv
../libMyStaticLib_xcode/build/libMyStaticLib.a(Flash.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(Flash.o) reference to
undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(STranslator.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(STranslator.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusTranslator.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83PlusTranslator.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83GetDeviceInfoFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83GetDeviceInfoFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83ReceiveDataObjectFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S83ReceiveDataObjectFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S73GetCertificateMemoryFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(S73GetCertificateMemoryFlowCmd.o)
reference to undefined
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SReadCmd.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
../libMyStaticLib_xcode/build/libMyStaticLib.a(SReadCmd.o) reference
to undefined __ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
/usr/bin/libtool: internal link edit command failed
Could anybody tell me how to create a universal static library? I
wonder the way to create a dynamic library is different for static
library.
Please I really need your help, I've been working on this issue for a week :(
Thanks everybody for your help!
Lilir :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden