菜鸟求教,visual studio 2010新建cocos2d-x项目每次运行都缺少头文件,求解决办法
新建cocos2d-x项目每次运行都缺少头文件,求解决办法。
1> Creating directory "E:\study folder\MyTest01\Debug.win32".
1>InitializeBuildStatus:
1> Creating "Debug.win32\MyTest01.win32.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> main.cpp
1>e:\study folder\mytest01\mytest01\proj.win32\main.h(11): fatal error C1083: Cannot open include file: 'CCStdC.h': No such file or directory
1> HelloWorldScene.cpp
1>e:\study folder\mytest01\mytest01\classes\helloworldscene.h(4): fatal error C1083: Cannot open include file: 'cocos2d.h': No such file or directory
1> AppDelegate.cpp
1>e:\study folder\mytest01\mytest01\classes\appdelegate.cpp(1): fatal error C1083: Cannot open include file: 'cocos2d.h': No such file or directory
1> Generating Code...
1>
1>Build FAILED.
难道每次都要把源码中的几个文件夹拷过来吗?
[最优解释]
把你的项目放到cocos2d-x的库下。 或是你在vs 工程里指定好你的库,在把库考过来。
[其他解释]
在build phase加连接就好了