you might want to try linking against /usr/lib/LibSystemStubs.a, it
got it working for me.
AC
On 16-Sep-06, at 12:37 PM, Theodore H. Smith wrote:
I can build UB fine from XCode, as I've done it from within other
projects.
I'm getting these link errors from within XCode.
ld: Undefined symbols:
__keymgr_get_and_lock_processwide_ptr
__keymgr_get_and_lock_processwide_ptr_2
__keymgr_set_and_unlock_processwide_ptr
_calloc
_dlopen
_dlsym
_free
_malloc
_log10
_memmove
_realloc
_DebugStr
_Gestalt
_exit
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
__keymgr_get_and_lock_processwide_ptr
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
__keymgr_get_and_lock_processwide_ptr_2
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
__keymgr_set_and_unlock_processwide_ptr
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
_calloc
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
_dlopen
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
_dlsym
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
_free
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o reference to undefined
_malloc
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_Dict.o reference to undefined _free
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_Dict.o reference to undefined _malloc
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_FastString.o reference to undefined _log10
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_FastString.o reference to undefined _memmove
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_Fuzz2.o reference to undefined _free
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_Fuzz2.o reference to undefined _malloc
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_Misc.o reference to undefined _memmove
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_MSR.o reference to undefined _memmove
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_sentialloc.o reference to undefined _free
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ED_sentialloc.o reference to undefined _realloc
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ElfData.o reference to undefined _DebugStr
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ElfData.o reference to undefined _Gestalt
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ElfData.o reference to undefined _memmove
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ObjectPlatform.o reference to undefined _exit
/Users/theodore/Programming/Making/ElfData/Source/build/
ElfData_MachO.build/Deployment/macoplug.build/Objects-normal/i386/
ObjectPlatform.o reference to undefined _memmove
How do I stop these errors? I've made projects before in Xcode and
never had a link problem to malloc/free. Why is it happening now? I
am including #include <stdlib.h> just like normal... yet its not
linking. What is up?
--
http://elfdata.com/plugin/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>