Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to run my Game created using cocos2d-x-v2.2.3 (language cpp) for windows phone. But it shows following error.

error C2440: 'type cast' : cannot convert from 'void (__cdecl StartScene::* )(void)' to 'cocos2d::extension::SEL_CCControlHandler'

If I include pch.h file in all class file above error is removed then new error created. The error is "Cannot open include file: 'pch.h': No such file or directory"

Though pch.h and pch.cpp are presented in CocosDenshion. In this circumstances what should i do? Thanks in Advance
Posted

1 solution

Quote:
If I include pch.h file in all class file above error is removed then new error created. The error is "Cannot open include file: 'pch.h': No such file or directory"
You have to include the folder containing pch.h in Visual Studio compiler search path:
  • Select the Project->Properties menu item.
  • On the newly appeared window select the Configuration Properties->VC++ Directories node.
  • On the listview on the right, select Include Directories and add the required path.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900