3

In my Xcode project I need to rename my ViewController.m in ViewController.mm , but I also need the DDMathParser.

I compile the parser in the .m file without any errors. But when I compile it in the .mm file I get following errors:

Parse issue at line:

- (DDOperatorAssociativity) associativityForOperator:(NSString *)operator;

"expected identifier"
iDev
  • 23,310
  • 7
  • 60
  • 85
  • 2
    Thanks for bringing this to my attention. I've filed a bug (https://github.com/davedelong/DDMathParser/issues/21) and will get around to fixing this at some point. – Dave DeLong Jan 05 '12 at 21:31

1 Answers1

5

Chage the name of the parameter from operator to anything else. operator is a keyword in C++.

Caleb
  • 124,013
  • 19
  • 183
  • 272