• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linking universal binary framework with UNIX library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking universal binary framework with UNIX library


  • Subject: Re: Linking universal binary framework with UNIX library
  • From: Dmitry Markman <email@hidden>
  • Date: Mon, 28 Nov 2005 22:14:21 -0500

adding


-lSystemStubs (libSystemStubs.a library from /usr/lib)

to the ldflag

solved the problem

(and I don't need to set universal sdk)


On Nov 28, 2005, at 9:54 PM, Dmitry Markman wrote:

Hi
I'm building dylib with XCode 2.2

and I'm getting the similar errors:

/usr/bin/libtool: NEXT_ROOT environment variable ignored because - syslibroot specified
ld: Undefined symbols:
_sprintf$LDBLStub
_sscanf$LDBLStub


I set target sdk to 10.4u.sdk
so essentially I did what Finlay Dobbie suggested

I have cocoa carbon javavm and system frameworks included

so what am I missing?

thanks



On Nov 20, 2005, at 5:15 PM, Finlay Dobbie wrote:


On 20/11/05, Andrew Zamler-Carhart <email@hidden> wrote:
Dear David et al,

Thanks for letting me know how to compile universal binaries on the
command line. The library (libjpeg.a) compiled for ppc/i386 with no
errors.

However, when I try to compile the framework that uses this library,
I get the following link errors:

     ld: Undefined symbols:
     _fprintf$LDBLStub
     _sprintf$LDBLStub
     _sscanf$LDBLStub

Build with -isysroot /Developer/SDKs/MacOSX10.4u.sdk in your CFLAGS and -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk in LDFLAGS

This is documented:
<http://developer.apple.com/documentation/DeveloperTools/ Conceptual/cross_development/Using/chapter_3_section_2.html>
<http://developer.apple.com/technotes/tn2005/tn2137.html>
<http://developer.apple.com/documentation/Porting/Conceptual/ PortingUnix/compiling/chapter_4_section_3.html>


 -- Finlay
 _______________________________________________
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

Dmitry Markman

_______________________________________________
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

Dmitry Markman

_______________________________________________
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


References: 
 >Linking universal binary framework with UNIX library (From: Andrew Zamler-Carhart <email@hidden>)
 >Re: Linking universal binary framework with UNIX library (From: David Young <email@hidden>)
 >Re: Linking universal binary framework with UNIX library (From: Andrew Zamler-Carhart <email@hidden>)
 >Re: Linking universal binary framework with UNIX library (From: Finlay Dobbie <email@hidden>)
 >Re: Linking universal binary framework with UNIX library (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: Linking universal binary framework with UNIX library
  • Next by Date: Xcode 1.5 and SharedCaches folder
  • Previous by thread: Re: Linking universal binary framework with UNIX library
  • Next by thread: Re: Linking universal binary framework with UNIX library
  • Index(es):
    • Date
    • Thread