• 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: const assignment issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: const assignment issue


  • Subject: Re: const assignment issue
  • From: Luigi Castelli <email@hidden>
  • Date: Thu, 7 Dec 2006 20:12:18 -0800 (PST)

here is the code fragment...

extern const long kTableSize = 8192;
extern const long kTableMask = kTableSize - 1;

The error that I get from X-code is:
error: initializer element is not constant

- Luigi





--- Scott Ribe <email@hidden> wrote:

> > However X-code does not allow me to do this:
> >
> > extern const float value = 1 + 1;
>
> Sure it does. Post a complete code sample and the
> error--although first you
> might want to preprocess the source file to see
> what's messing up that line.
>
> --
> Scott Ribe
> email@hidden
> http://www.killerbytes.com/
> (303) 722-0567 voice
>
>
>



------------------------------------------------------------
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.  ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED.  IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT email@hidden AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
------------------------------------------------------------




____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
 _______________________________________________
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: const assignment issue
      • From: David A Rowland <email@hidden>
References: 
 >Re: const assignment issue (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: const assignment issue
  • Next by Date: Re: Builds cause iTunes to stutter
  • Previous by thread: Re: const assignment issue
  • Next by thread: Re: const assignment issue
  • Index(es):
    • Date
    • Thread