Re: Redeclaration of enumerator errors
Re: Redeclaration of enumerator errors
- Subject: Re: Redeclaration of enumerator errors
- From: Gideon King <email@hidden>
- Date: Thu, 9 Dec 2010 18:23:25 +1000
OK, sorted it out. Somehow XCode was horribly confused - I had another project open with a copy of that same file in it, and then somehow XCode had opened it in my project, and then it just got confused. Don't really understand, but closing the other project and the file that was opened in the wrong project sorted it out.
On 09/12/2010, at 5:37 PM, Gideon King wrote:
> 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