Expected specifier-qualifier-list before ... only in classes in a certain folder

Posted by funkybro on Stack Overflow See other posts from Stack Overflow or by funkybro
Published on 2010-03-15T15:16:27Z Indexed on 2010/03/15 15:19 UTC
Read the original article Hit count: 318

Filed under:

Hi

Classes in my iPhone project are organised within folders on the filesystem, these correspond to groups (for each folder) in xcode. My problem is that there seems to be a particular class which classes in a particular group/folder cannot make reference to; the compiler complains of "Expected specifier-qualifier-list...".

This happens on any class within this group, and also when I create a new class within this group and try and import the offending class like so:

#import <Foundation/Foundation.h>
#import "MyClass.h"

@interface TryingToImport : NSObject {
    MyClass *myClass; // Expected specifier-qualifier-list before 'MyClass'
}

Creating an identical class in any other group works OK.

I understand this error message is usually due to cyclical import references, I have checked over and over and there don't seem to be any of these. I assume I have inadvertantly configured the offending group to be different to the others in some way but I can't figure out how.

Help please!

© Stack Overflow or respective owner

Related posts about iphone