cocos2d-objc icon indicating copy to clipboard operation
cocos2d-objc copied to clipboard

Resolved compiler error when compiling a project that uses ObjCpp

Open logan-5 opened this issue 8 years ago • 1 comments

... as well as Cocos2D-Objc. Also added an Objective-C++ test to cocos2d-tests; one involving a basic node hierarchy, the next involving a slightly more dicey manual visiting of a node with proper transforms, without necessarily adding it as a child of another node, using CCRenderer_Private.h.

This patch does not necessarily allow you to compile cocos2d in Objective-C++ mode. It only ensures that you can use Objective-C++ in your project along with Cocos2D-Objc.

The Objective-C++ fix within CCRenderer_Private.h was suggested by @slembcke here: http://forum.spritebuilder.com/t/cocos3d-c-mm-files-compiler-issue/15570/4

logan-5 avatar Jun 25 '16 23:06 logan-5

I think this error appears only with ObjCpp compilers.. I have to look at it more precisely a bit later.

I actually use ObjC++ now in my project with 3.5 and do not face any issues, I have to check it.

s1ddok avatar Jun 26 '16 09:06 s1ddok