cocoa Expected specifier-qualifier-list before struct

Posted by Circle on Stack Overflow See other posts from Stack Overflow or by Circle
Published on 2010-05-31T06:18:00Z Indexed on 2010/05/31 6:22 UTC
Read the original article Hit count: 566

Filed under:
|
|

I read the other posted solutions to using structs and resolving the "Expected specifier-qualifier-list before struct" related errors, but those aren't working. Is it different in Objective C? Do I need to declare my struct somewhere else in the class? It gives me the error on the line where I declare the typedef. Here is how it looks right now:

@interface ClassA : NSObject {
    NSString *name;

    typedef struct _point {
        uint32_t x;
        uint64_t y;
    } Point;

    Point a;
}
@end

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about error