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: g++ 4 & MACOSX_DEPLOYMENT_TARGET=10.2




On Nov 16, 2005, at 6:29 AM, Nathan Herring wrote:

Am I correct in thinking that g++ 4-built targets won't run on 10.2?
10.2 doesn't have the dynamic version of the stdc++ library, just the
static version. But, even if you want to link with -static-libgcc, the
option is ignored in g++ 4 on 10.4.3 with the Xcode 2.2 update since
there is no static version. No warnings or anything.

Would using the 10.2 SDK make this work correctly (since a static
version _does_ live there)? Unfortunately, since I'm using a jam target,
I'm not so sure how to set it up. (Regular Xcode projects are a cinch
that way.)

No, gcc4.0 requires the dynamic libstdc++.dylib which is only deployed on 10.3.9 and later. To build for 10.2, use the SDK in conjunction with gcc 3.3. You can use the GCC_VERSION = 3.3 build setting to select this on a per-target basis (or GCC_VERSION_ppc for per-target, per-architecture).


Chris

_______________________________________________
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: 
 >g++ 4 & MACOSX_DEPLOYMENT_TARGET=10.2 (From: "Nathan Herring" <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.