unexpected '@' in program

418 views
Skip to first unread message

mkloster

unread,
Aug 10, 2012, 2:59:00 AM8/10/12
to cocoalu...@googlegroups.com
I downloaded Lumberjack today and attempted to compile using XCode 4.3.3, iOS5, Apple LLVM compiler 3.1.

I'm getting unexpected '@' in program errors on line 1045 of DDFileLogger.m, where it appears to be an array literal:


- (NSString *)description
{
return [@{@"filePath": self.filePath,
@"fileName": self.fileName,
@"fileAttributes": self.fileAttributes,
@"creationDate": self.creationDate,
@"modificationDate": self.modificationDate,
@"fileSize": @(self.fileSize),
@"age": @(self.age),
@"isArchived": @(self.isArchived)} description];
}

There are other errors as well where the literal syntax is used for ints. 

My project is not ARC. So, I have followed the instructions to set the compiler flag for the Lumberjack files.

Based on what I have read, this literal syntax is introduced in Apple LLVM compiler 4.0. Or perhapse can be accessed by forcing the linker to include arclite. (stackoverflow).

Is this correct, or is there something I am missing?

thanks!
Michael

mkloster

unread,
Aug 10, 2012, 3:02:31 AM8/10/12
to cocoalu...@googlegroups.com
Correction, dictionary literal (not array literal). 
Reply all
Reply to author
Forward
0 new messages