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: gcc linking question




On Nov 3, 2007, at 7:21 AM, mothra wrote:


Thanks for the input - it appears that that solution does work. It is a
bit distressing to me that Apple's gcc 4.0.1 is not consistent with either
RedHat's gcc 4.1.* or their gcc 3.*, or Apple's gcc 3.* in this regard. Is
Apple striking out on its own here? Or is this requirement for two lines
of code to initialize such variables an existing standard that only Apple
is currently enforcing?


Without looking at the compile command lines for your RH compile it is hard to say why it is working.

I am fairly curtain that what you had isn't allowed by the standard and so Apple gcc 4.0.1 is being compliant. RH gcc 4.1 should also be compliant but you may be specifying a mode that allows some "gcc" specific extension to the standard.

Versions of gcc before 4.0 had much loser standards compliance.

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

This email sent to email@hidden
References: 
 >Re: gcc linking question (From: mothra <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.