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: Why should we not use GCC 4.0 for deployment on systems earlier than Mac OS X 10.3.9?



On Jun 28, 2005, at 2:40 AM, Nick Zitzmann wrote:


On Jun 27, 2005, at 5:40 PM, João Varela wrote:

I have been reading the documentation of GCC to see the caveats of this compiler and I really wanted to start using GCC 4.0 because it makes smaller code at faster compiling speeds. However, the docs state that we SHOULD NOT use GCC 4.0 if we want to deploy on systems earlier than Mac OS X 10.3.9. It is not said we CANNOT, only that we SHOULDN'T. My question is: why shouldn't we?

When linking binaries, GCC 4 does two things very differently from 3.3:

1. GCC 4 links C++ code to a shared libstdc++ library; GCC 3.3 uses a static library instead.
2. GCC 4 links all code to libmx; GCC 3.3 does not unless otherwise requested.


#1 breaks the app on versions of Mac OS X prior to 10.3.9, which don't have a dynamic C++ library. #2 breaks the app on versions of Mac OS X prior to 10.3.0, which don't have libmx.

Is it possible to make static libstdc++ library from gcc sources and link against this? Could this way work out? I've tried it but with no success so far. I'd like to use gcc4 optimizations and also support 10.2 systems.


Palo Markovic

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Why should we not use GCC 4.0 for deployment on systems earlier than Mac OS X 10.3.9? (From: João Varela <email@hidden>)
 >Re: Why should we not use GCC 4.0 for deployment on systems earlier than Mac OS X 10.3.9? (From: Nick Zitzmann <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.