Re: strange link error: ld: Undefined symbols: _sprintf$LDBLStub
Re: strange link error: ld: Undefined symbols: _sprintf$LDBLStub
- Subject: Re: strange link error: ld: Undefined symbols: _sprintf$LDBLStub
- From: "Sean McBride" <email@hidden>
- Date: Wed, 17 Aug 2005 14:25:05 -0400
- Organization: Rogue Research
On 2005-08-15 16:36, Glen Beane said:
>> My app is working with ZeroLink, but I have some strange link errors
>> without it:
>>
>> ld: Undefined symbols:
>> _sprintf$LDBLStub
>> _fprintf$LDBLStub
>>
>> I do have several 3rd party static libraries and frameworks, built God
>> knows how... could there be a conflict there?
>
>try adding -lSystemStubs as a compiler argument.
Do you know of any docs for this? I see nothing in the gcc nor ld man pages.
>I've seen this when mixing objects built with gcc-4 with objects
>built with gcc-3.3 or xlc on 10.4
Thanks for this hint Glen... It definitely seems to have to do with
mixing compiler versions. I have some more info now:
- I have 2 static libs (C not C++!), libminc.a and libvolume_io.a, they
are built with gcc 4 (build 5026)
- I have an Xcode 2.2 project that uses these 2 libraries
- if I use gcc 3.3 I get link errors: _sprintf$LDBLStub etc.
- if I use gcc 4.0 I don't have those link errors
- I have a CodeWarrior 9.5 project that uses these 2 libraries, it also
won't link, also complaining about _sprintf$LDBLStub and _fprintf
$LDBLStub. The CW project did link when the libraries were built with
gcc 3.3.
So something changed with gcc 4, but what? What is this SystemStubs
thing? Why might I need it?
Why can't a C lib built with one one compiler be used by another? I
don't remember having these problems with CFM!
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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