Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libsystem compatability from os 10.2 to 10.4




On Feb 26, 2007, at 7:20 PM, Greg Guerin wrote:

Dave Dyer wrote:

The exact message from os 10.2.8 is

/Applications/Adobe InDesign
CS2/Plug-Ins/Jostens/placerid.bundle/Contents/MacOS/placerid undefined
reference to _fprintf$LDBL128 expected to be defined in
/usr/lib/libSystem.B.dylib

The symbol _fprintf$LDBL128 doesn't exist prior to 10.4.

It sounds very much like you're compiling your plugin targeted for 10.4,
but running it under 10.2.8.

This won't work.  For a host of reasons.

For your plugin to run under 10.2.8, you must do at least the following:
  1. Use the 10.2.8 SDK.
  2. Use the GCC compiler appropriate for 10.2.8 (gcc 3.3, IIRC).
  3. Set your target OS version to 10.2.

You don't have to do item 1 above as long as you do any need runtime checks of API that came out after 10.2.8.

Review...

<http://developer.apple.com/documentation/developertools/Conceptual/cross_development/HowItWorks/chapter_2_section_3.html>
<http://developer.apple.com/documentation/developertools/Conceptual/cross_development/HowItWorks/chapter_2_section_7.html>

I suggest you set the SDK to the version of OS that you want to be able to use API from (say 10.4). As needed you can temporarily specify the max OS version to be 10.2 (MAC_OS_X_VERSION_MAX_ALLOWED) to cause the availability macros to complain about usage of post 10.2 API so that you can make sure you are doing the correct runtime checks.

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: libsystem compatability from os 10.2 to 10.4 (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.