You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using clang3.8 on Ubuntu 15.04 a clean build fails with the following error:
In file included from [...]/cocos2d-x/cocos/base/allocator/CCAllocatorGlobal.h:31:
[...]/cocos2d-x/cocos/base/allocator/CCAllocatorStrategyDefault.h:45:16: error: use of undeclared identifier 'malloc'
return malloc(size);
^
[...]/cocos2d-x/cocos/base/allocator/CCAllocatorStrategyDefault.h:51:13: error: use of undeclared identifier 'free'
free(address);
^
2 errors generated.
I did install all dependencies and updated submodules.
Including cstdlib in the CCAllocatorStrategyDefault.h file did fix the problem for me.
The text was updated successfully, but these errors were encountered:
Hi, @man2 Linux is not our focusing platform, so we can't spend too much time on it, we have a small group size and we must focus on what is important for most of our users. So I'm sorry we can't improve it recently, I'm closing it.
Using clang3.8 on Ubuntu 15.04 a clean build fails with the following error:
In file included from [...]/cocos2d-x/cocos/base/allocator/CCAllocatorGlobal.h:31:
[...]/cocos2d-x/cocos/base/allocator/CCAllocatorStrategyDefault.h:45:16: error: use of undeclared identifier 'malloc'
return malloc(size);
^
[...]/cocos2d-x/cocos/base/allocator/CCAllocatorStrategyDefault.h:51:13: error: use of undeclared identifier 'free'
free(address);
^
2 errors generated.
I did install all dependencies and updated submodules.
Including cstdlib in the CCAllocatorStrategyDefault.h file did fix the problem for me.
The text was updated successfully, but these errors were encountered: