Re: Fwd: Error linking in Xcode 2.1 (undefined symbols in libSystem)
Re: Fwd: Error linking in Xcode 2.1 (undefined symbols in libSystem)
- Subject: Re: Fwd: Error linking in Xcode 2.1 (undefined symbols in libSystem)
- From: Sailesh Agrawal <email@hidden>
- Date: Sat, 23 Jul 2005 01:47:11 -0700
I get the same errors a lot now. It turns out that some of my projects
were set to use 10.4.0 SDK and some were using 10.3.9. I think this is
what's causing those link errors.
I'm also going to try using XCode 2.2, hopefully that'll reduce all
these weird errors.
Allen Cronce wrote:
Hi Milke,
I'm seeing a very similar set of errors. Did you resolve this problem?
What's happening in my case is I've built some static libraries using
gcc 4.0. When I try to link against these libraries from a project
built with gcc 3.3, I get this link error:
ld: Undefined symbols:
_sprintf$LDBLStub
_printf$LDBLStub
_sscanf$LDBLStub
_fprintf$LDBLStub
We need to provide these static libraries to our customers. Does the
above error mean that we have to build and provide both gcc 3.3 and
4.0 generated libraries? Or is there some other work around that will
allow us to build static libraries under gcc 4.0 that will link with
gcc 3.3?
Best regards,
--
Allen Cronce
Dragan Milić wrote:
Begin forwarded message:
*From: *Dragan Milić
*Date: *sreda, 06.07.2005. 12:53:02 CET
*To: *Xcode-users Mailing List <email@hidden
<mailto:email@hidden>>
*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.
Maybe I should add that I'm linking against "Current Mac OS" SDK
(MacOSX10.4), I'm not using MacOSX10.4u, since I'm not building
universal binary. Also, when building I've noticed reports of
precompiling of 2 prefix headers, although the project contains only
one prefix header file, created automatically during creation of the
project, the one that imports <Cocoa/Cocoa.h> inside "#ifdef
__OBJ_C__ ... #endif" clause. Again, this happens only when linking
one particular project, others work fine, which confuses me even more.
When building development build (with ZeroLink) everything goes
without any problem.
Cheers
Milke
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
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
_______________________________________________
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