Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved compiler error when compiling a project that uses ObjCpp #1382

Open
wants to merge 105 commits into
base: v3.5.0
Choose a base branch
from

Conversation

logan-5
Copy link

@logan-5 logan-5 commented Jun 25, 2016

... 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

s1ddok and others added 30 commits February 3, 2016 19:59
Basic removal of some android files
Clean up android, add triggering delegate calls during programming
animations
It is possible now to create custom transitions without any
objc-runtime hacks
ObjectAL is marked deprecated now by Apple. Somebody may prefer to use
AVAudioSession instead of pulling the whole code for ObjectAL
CCPhysics code is an ugly monster. Also, there is still a lot of
attention paid to Box2D, so no reason for including Chipmunk physics in
stock cocos2d package
oxeron and others added 28 commits March 11, 2016 09:23
Squashed commits:
[bc26607] Getting rid of CCPackageManager_private.h
This one was easy code was already in CCPackageManager.m
Fixed CCTextField textField property always being nil on mac.
SpriteBuilder renamed to CocosBuilder
On behalf from latest TexturePacker added his code changes from website, for details on contentprotection see: https://www.codeandweb.com/texturepacker/contentprotection

Original ZipUtils could not handle pvr.ccz version 2 correctly (wrong byte header), currently version 3 (pvr.ccz = pvr+zlib) works fine.
Converted tabs to spaces
Added some comments
…as-support

CCSpriteFrameCache support for loading sprite sheets from image assets.
Compatibility with latest TexturePacker SpriteSheets Using PVR+zlib
…C++ 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.

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
@s1ddok
Copy link
Contributor

s1ddok commented Jun 26, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants