Expected specifier-qualifier-list before ... only in classes in a certain folder
- by funkybro
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!