user3146380
user3146380

Reputation: 61

Expected ';' after top level declarator in googelAnalytics sdk

I am doing one application.In that i ma using the GoogleAnalytics SDK.It's working in io6,but getting this error in ios5 only at the below line

typedef NS_ENUM (NSUInteger, GAILogLevel){

}

How to clear this error in ios 5.

Upvotes: 1

Views: 4229

Answers (1)

Brian Tracy
Brian Tracy

Reputation: 6831

Your code will work with a few adjustments. typedef is a statement, so it has to be semicolon terminated.

typedef NS_ENUM (NSUInteger, GAILogLevel){
    // put something in here so it's not an empty enum
};

Upvotes: 1

Related Questions