时间:2021-07-01 10:21:17 帮助过:21人阅读
打包错误,提示找不到 CCPlatformMacros.h 或者 CCPlatformConfig.h 文件。 Error 3 error C1083: Cannot open include file: ‘platform/CCPlatformMacros.h’: No such file or directory d:\workspacecocos2dx\cocos2d-x-2.2\cocos2dx\platform\winrt\CCS
打包错误,提示找不到CCPlatformMacros.h或者CCPlatformConfig.h文件。
Error 3 error C1083: Cannot open include file: ‘platform/CCPlatformMacros.h’: No such file or directory d:\workspacecocos2dx\cocos2d-x-2.2\cocos2dx\platform\winrt\CCStdC.h 29 1 ThunderPlaneX
Error 18 error C1083: Cannot open include file: ‘platform/CCPlatformConfig.h’: No such file or directory D:\WorkspaceCocos2dx\cocos2d-x-2.2\cocos2dx\include\ccConfig.h 30 1 ThunderPlaneX
错误说的很明显了,检查一下项目的include路径,应该是少了cocos2dx所在目录,加入即可:
$(ProjectDir)......\cocos2dx
另外需要注意的是,一下两个目录也别忘了要加入include路径当中。:
$(ProjectDir)......\CocosDenshion\include
$(ProjectDir)......\CocosDenshion\include