Redeclaration of enumerator errors
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