Expected specifier-qualifier-list before -


i have following objective-c headers:

// menu.h  #import <uikit/uikit.h> #import "gamecontroller.h"  @interface menu : uiimageview {     gamecontroller *gamecontroller;   // "expected specifier-qualifier-list                                       // before gamecontroller" }  - (void)appear;  @end 

and

// gamecontroller.h  #import <uikit/uikit.h> #import "menu.h"  @interface gamecontroller : uiview {     menu *menu;                       // "unknown type name 'menu'" }  - (void)startlevel0; - (void)startlevel1; - (void)startlevel2;  @end 

when try build project, xcode (v4) yells @ me, saying expected specifier-qualifier-list before gamecontroller , unknown type name 'menu'. i'm sure somehow related, have no idea how?

it's not practice have mutually-including header files. instead of importing menu.h, use @class directive. try removing #import "menu.h" , adding @class menu in place. ditto menu.h (remove gamecontroller include, , add @class directive)


Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -