From: http://7090.iteye.com/blog/1402996
According to the Web tutorial after the configuration, mainly encountered two problems, the first is to create a new cocos2d-x project, click build, error message
C ++ code
- Fatal error c1083: cannot open include file: 'ccstdc. H': no such file or directory
The reason is that the header files of cocos2d were not found. After searching for the header files for a long time, I finally found a place to modify the header files. For details, refer. There is no way to modify them. The default path
C ++ code
- .;. \ Win32 ;. \ Classes ;.. \ cocos2dx ;.. \ cocos2dx \ include ;.. \ cocos2dx \ platform ;.. \ cocos2dx \ platform \ third_party \ Win32 \ ogles ;.. \;.. \ cocosdenshion \ include; % (additionalincludedirectories)
My cocos2d SDK directory is E: \ SDK \ cocos2d-1.0.1-x-0.10.0, after modification
C ++ code
- .;. \ 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)
After these changes, the build still fails and an error is reported:
C ++ code
- Link: Fatal error lnk1104: cannot open file 'libcocos2d. lib'
. After half a day, I finally copied the release. Win32 and Debug. Win32 directories under the cocos2d directory to the newly created Project, and the build was OK. It was really not easy.