• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: error: array bound is not an integer constant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: array bound is not an integer constant


  • Subject: Re: error: array bound is not an integer constant
  • From: Markian Hlynka <email@hidden>
  • Date: Fri, 15 Jul 2005 11:50:51 -0600
  • Illegal-object: Syntax error in To: address found on sunkay.cs.ualberta.ca: To: Justin C.Walker <email@hidden> ^ ^-missing end of address \-extraneous tokens in address


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 it breaks at the typedef line with gcc 4.0:

markian$ on s01060011249c8734:gccbug$> g++ bug.cc
bug.cc:18: error: array bound is not an integer constant
markian$ on s01060011249c8734:gccbug$> gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 (Apple Computer, Inc. build 5026)



 _______________________________________________
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

  • Follow-Ups:
    • Re: error: array bound is not an integer constant
      • From: "Justin C. Walker" <email@hidden>
References: 
 >error: array bound is not an integer constant (From: Markian Hlynka <email@hidden>)
 >Re: error: array bound is not an integer constant (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Re: error: array bound is not an integer constant
  • Next by Date: Re: error: array bound is not an integer constant
  • Previous by thread: Re: error: array bound is not an integer constant
  • Next by thread: Re: error: array bound is not an integer constant
  • Index(es):
    • Date
    • Thread