I have a typedef'd struct I want to use in multiple files:
typedef struct point {
int col;
int row;
} point;
When I include it in a header file that is included by multiple files, I get:
"SomeFile.h:18: fatal error: method definition not in @implementation context" where another .h file defines a method with that type:
-(CGRect)createObj: (point)p;
What am I doing wrong?
Thanks!
typedef struct point {
int col;
int row;
} point;
When I include it in a header file that is included by multiple files, I get:
"SomeFile.h:18: fatal error: method definition not in @implementation context" where another .h file defines a method with that type:
-(CGRect)createObj: (point)p;
What am I doing wrong?
Thanks!