Re: error: array bound is not an integer constant
Re: error: array bound is not an integer constant
- Subject: Re: error: array bound is not an integer constant
- From: "Justin C. Walker" <email@hidden>
- Date: Fri, 15 Jul 2005 11:13:37 -0700
On Jul 15, 2005, at 10:50 , Markian Hlynka wrote:
On Jul 15, 2005, at 9:28, Justin C. Walker wrote:
On Jul 15, 2005, at 01:29 , Markian Hlynka wrote:
I've written some sample code below. This worked fine before, but
I just upgraded to xcode 2.1 and tiger 10.4.2. Now it's broken. I
need to be able to do this or else way lots of stuff breaks. Can
someone help me find a solution, or understand what's going on?
The problem seems to be in the typedef line. I don't actually
need to do it for an int, but the error is the same. What's going
on?
It would help us if you could tell us:
- what the real error is ("it breaks near the typedef line"
isn't helpful)
- what version(s) of gcc you have used
I'm sorry. The error was in the subject line. I should have
restated it:
error: array bound is not an integer constant
And I could have paid closer attention as well.
And it breaks at the typedef line with gcc 4.0:
Sounds like a bug, unless something in a standard somewhere changed
while we weren't watching. Report it to Apple (unless someone here
knows for sure).
For the future, 'gcc_select' will tell you exactly what compilers it
knows about:
$ gcc_select -l
Available compiler versions:
3.3 3.3-fast 4.0
$
and these tags are what you use with 'gcc_select'.
Cheers,
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for General Semantics
-----------
My wife 'n kids 'n dog are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden