• 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: Weird build error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird build error


  • Subject: Re: Weird build error
  • From: Robert Kukuchka <email@hidden>
  • Date: Thu, 17 Apr 2008 15:50:41 -0700

you forgot the break;
On 17-Apr-08, at 3:47 PM, Don Arnel wrote:

I've been working on a project for a few weeks now and suddenly today I get this error while building (see below). I was getting this same error in one of my real classes so after commenting out almost every bit of code and still seeing the error, I decided to just create a new TestClass and see if it would occur there. Sure enough it did. If I remove the default: case it compiles fine. If I remove the comments from the line that creates myArray I get a syntax error before '*' error.

I've lost nearly all my hair on this so if someone knows what could be causing this I'd GREATLY appreciate the help.

- Don

Aside from the usual comments inserted at the top of the code and the untouched header as it was created, this is my entire class:

#import "TestClass.h"

@implementation TestClass

- (void)TestFunction
{
	switch (1) {
		case 1:
			//NSMutableArray *myArray=[[NSMutableArray alloc] init];
			break;
		default:
	}
	(x)(error: label at end of compound statement)
}

@end

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
@mac.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Weird build error
      • From: Don Arnel <email@hidden>
References: 
 >Weird build error (From: Don Arnel <email@hidden>)

  • Prev by Date: Re: Using Properties at Outlets
  • Next by Date: Re: Weird build error
  • Previous by thread: Weird build error
  • Next by thread: Re: Weird build error
  • Index(es):
    • Date
    • Thread