• 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: David A Rowland <email@hidden>
  • Date: Thu, 7 Dec 2006 21:18:23 -0800

At 8:12 PM -0800 12/7/06, Luigi Castelli wrote:
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


Using XCode 2.4.1 I find that error when the code is in a .c file, but no error when it is in a .cp file.
_______________________________________________
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: Luigi Castelli <email@hidden>
References: 
 >Re: const assignment issue (From: Luigi Castelli <email@hidden>)

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