转自:http://7090.iteye.com/blog/1402996
按照网上的教程配置完以后,主要遇到了两个问题,首先第一个是在建立一个新的cocos2d-x工程之后,点击build,提示错误信息
- fatal error C1083: Cannot open include file: 'CCStdC.h': No such file or directory
- .;.\win32;.\Classes;..\cocos2dx;..\cocos2dx\include;..\cocos2dx\platform;..\cocos2dx\platform\third_party\win32\OGLES;..\;..\CocosDenshion\Include;%(AdditionalIncludeDirectories)
我的cocos2d sdk的目录是E:\Sdk\cocos2d-1.0.1-x-0.10.0,修改完以后
- .;.\win32;.\Classes;E:\Sdk\cocos2d-1.0.1-x-0.10.0\cocos2dx;E:\Sdk\cocos2d-1.0.1-x-0.10.0\cocos2dx\include;E:\Sdk\cocos2d-1.0.1-x-0.10.0\cocos2dx\platform;E:\Sdk\cocos2d-1.0.1-x-0.10.0\cocos2dx\platform\third_party\win32\OGLES;E:\Sdk\cocos2d-1.0.1-x-0.10.0;E:\Sdk\cocos2d-1.0.1-x-0.10.0\CocosDenshion\include;%(AdditionalIncludeDirectories)
改完这些以后,build还是不行,又报错:
- LINK : fatal error LNK1104: cannot open file 'libcocos2d.lib'