Search code examples
c++visual-studio-2010windows-7cocos2d-x

Setup cocos2d-x application through visual studio 2010 project template


I'm trying to setup an application on Windows 7 using Cocos2D-x.

I followed this tutorial.

I did the following:

  1. Built the library running Build-win32.bat script. Works.
  2. Installed VS2010 project template. Works.
  3. Run successfully all test programs.
  4. Created a new cocos2D-x project through the installed template. Works

When I compile the Hello World application I have the follwing errors:

error C1083: impossible to open inclusion file 'CCstdC.h' No such file or directory
error C1083: impossible to open inclusion file 'cocos2d.h' No such file or directory

It's a wrong include path.

I could fix it by manually modifying include path but since I'm creating project through the template I-d like to solve this, possibly not having to modify paths manually for each new project I'll create.

Did anyone ever had the same issue?Do you know how to fix this?


Solution

  • I solved opening the cocos2dx library solution and add to it a new project through VS template wizard.