I have a Cocos 2D game under development which also implements Box 2d and integration required me to change my .m classes to .mm
Now I am trying to use a code that draws Fruit Ninja style swiping effect using the code at https://github.com/hiepnd/CCBlade
When Compiling I get error at the line #include < list >
(CCBlade.h:14:0 CCBlade.h:14:15: error: list: No such file or directory)
It works fine when integrated with a .m file, but the error is when trying to use it with .mm
Any solutions for this ?
(after reading description in the comments)
the problem is likely that some translation that is not c++ or objc++ is including
<list>via inclusion ofCCBlade.hcheck your build transcript for the failed file:
-x objective-chere, the flag-xspecifies the language. if it is not c++ or objc++, you’ll get the error you presented.