• 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
Redeclaration of enumerator errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redeclaration of enumerator errors


  • Subject: Redeclaration of enumerator errors
  • From: Gideon King <email@hidden>
  • Date: Thu, 9 Dec 2010 17:37:01 +1000

Hi, I have a header file that has a bunch of typedef enums like this in it:

typedef enum {
	AAConnectionPointNorth,
	AAConnectionPointEast,
	AAConnectionPointSouth,
	AAConnectionPointWest,
	AAConnectionPointCenter,
	AAConnectionPointUnknown
} AAConnectionPointLocation;

I #import that file into a bunch of other .h and .m files in my project (24 in total). This has worked for me before, and works with exactly this same file in a different project, but in this project, for every item in the enum except the last one, it says it is redeclared 28 times, and the last element redeclared 56 times.

I have never seen anything like this before, so would appreciate any suggestions as to what may be causing this and how to get around it. I have tried an #ifndef / #define protection block around it, but even that made no difference.


Thanks

Gideon



 _______________________________________________
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: Redeclaration of enumerator errors
      • From: Gideon King <email@hidden>
  • Prev by Date: Re: Xcode 3.2.5 and iOS4 frameworks code completion (code sensing)
  • Next by Date: Re: Redeclaration of enumerator errors
  • Previous by thread: Re: Code Signing "object file format invalid or unsuitable"
  • Next by thread: Re: Redeclaration of enumerator errors
  • Index(es):
    • Date
    • Thread