cocos2dx 3.0 Android Build error

0 votes

hello.

i try cocos2dx 3.0 with app42api.

 

ios is work fine but android build erorr.

 

jni/../../App42Api/Common/GameService.cpp: In member function 'void GameService::CreateGame(std::string, std::string, cocos2d::Object*, cocos2d::SEL_CallFuncND)':

jni/../../App42Api/Common/GameService.cpp:85:39: error: expected type-specifier

     App42GameResponse *response = new App42GameResponse::App42GameResponse(pTarget,pSelector);

                                       ^

jni/../../App42Api/Common/GameService.cpp: In member function 'void GameService::GetGamebyName(std::string, cocos2d::Object*, cocos2d::SEL_CallFuncND)':

jni/../../App42Api/Common/GameService.cpp:136:39: error: expected type-specifier

     App42GameResponse *response = new App42GameResponse::App42GameResponse(pTarget,pSelector);

                                       ^

jni/../../App42Api/Common/GameService.cpp: In member function 'void GameService::GetAllGames(cocos2d::Object*, cocos2d::SEL_CallFuncND)':

jni/../../App42Api/Common/GameService.cpp:185:39: error: expected type-specifier

     App42GameResponse *response = new App42GameResponse::App42GameResponse(pTarget,pSelector);

 
 
 
some help please.

 

asked Mar 24, 2014 in App42 Cloud API-BaaS by brown (10 points)

1 Answer

0 votes
Hi Brown,

Thanks for reporting. Can you please make sure that it is not file path problem.

Can you share your Android.mk file.Meanwhile we will also check at our end.

Thanks.
answered Mar 24, 2014 by rajeev.etc (1,660 points)
App42GameResponse *response = new App42GameResponse::App42GameResponse(pTarget,pSelector);

to

App42GameResponse *response = new App42GameResponse(pTarget,pSelector);

i fix this problem.
this problem only android.

and i try cocos2dx 3.0 RC0
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...