Re: const assignment issue
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