Re: gcc linking question
Re: gcc linking question
- Subject: Re: gcc linking question
- From: Shawn Erickson <email@hidden>
- Date: Sat, 03 Nov 2007 07:57:14 -0700
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:
This email sent to email@hidden