But error is caused in the first line..

phent_settype(myCrate,PH_RIGID,PH_SPHERE);