From: Dragan Milić
Date: sreda, 06.07.2005. 12:53:02 CET
Subject: Error linking in Xcode 2.1 (undefined
symbols in libSystem)
Hi everyone,
I have a couple of small projects, compiled and linked under
Mac OS X 10.3.9 and Xcode 1.5. Recently I've switched to Tiger and
Xcode 2.1. I succeded to rebuild all my projects, except one. Compiling
goes fine, but when linking I get these errors:
/usr/bin/ld:
Undefined symbols:
_snprintf$LDBLStub
_sscanf$LDBLStub
_printf$LDBLStub
_strtod_l
referenced from AppKit expected to be defined in libSystem
_snprintf_l
referenced from AppKit expected to be defined in libSystem
_sprintf_l
referenced from AppKit expected to be defined in libSystem
_sscanf_l
referenced from AppKit expected to be defined in libSystem
_OSSpinLockLock
referenced from AppKit expected to be defined in libSystem
_OSSpinLockUnlock
referenced from AppKit expected to be defined in libSystem
.........................................................................
_TXTRecordDeallocate
referenced from CFNetwork expected to be defined in libSystem
_TXTRecordGetBytesPtr
referenced from CFNetwork expected to be defined in libSystem
_TXTRecordGetCount
referenced from CFNetwork expected to be defined in libSystem
_TXTRecordGetItemAtIndex
referenced from CFNetwork expected to be defined in libSystem
_TXTRecordGetLength
referenced from CFNetwork expected to be defined in libSystem
_TXTRecordSetValue
referenced from CFNetwork expected to be defined in libSystem
collect2: ld
returned 1 exit status
There are a lot of reports like these above, and they all
refer to libSystem as being the source of the problem. I tried with
many build options, but I couldn't get that particular project to link
and build. Any help would be highly appreciated.
Milke.