Free,Malloc,memcpy was not declared in this scope in Blackberry Momentics

Im not able to build the fresh library of 2.2.5. I just downloaded the library,imported libraries and Helloworld project.
Changed the properties of build to simulator active for libcocos2dx,extensions,cocosdension,box2d etc. And when i give clean build for all libraries it throws out these compiler errors. Please help.

Blackberry 10.3
Momentics SDK
Simulator active build
cocos2d-x 2.2.5

Seems like you are missing a search path or something for it to find free, malloc, memcpy, etc.

I didn’t do anything except import the projects into momentics and its libraries and build as simulator active. It worked for cocos2d-x 2.2.1 but with 2.2.5 i’m getting all these C errors. Anything else you might have a clue on?

Well, free, malloc, memcpy are all part of the cstdlib and you need to include #include <stdlib.h> to get these…