NatWeiss / RapidGame

A commandline tool for Windows, Mac and Linux that prebuilds cocos2d-x static libraries. Also a cross-platform game templating system.
https://github.com/NatWeiss/RapidGame
MIT License
139 stars 22 forks source link

upgrading to 0.9.7 from 0.9.5 introduces build errors in AppDelegate.cpp #9

Closed nanocore closed 9 years ago

nanocore commented 9 years ago

I have a project built using rapidgame 0.9.5 and upgraded to 0.9.7. I prebuilt and updated lib in my project and quit Xcode. Started Xcode (using 6.1.1) back up and tried to build and the resultant errors

iOS Group .../Projects/AppDelegate.cpp .../Projects/AppDelegate.cpp:35:2: Reference to 'Size' is ambiguous .../Projects/AppDelegate.cpp:37:3: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:39:3: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:42:25: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:45:22: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:46:15: No member named 'origin' in 'Rect' .../Projects/AppDelegate.cpp:46:27: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:46:57: No member named 'size' in 'Rect' .../Projects/AppDelegate.cpp:48:3: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:49:15: No member named 'origin' in 'Rect' .../Projects/AppDelegate.cpp:49:27: Use of undeclared identifier 'designRes' .../Projects/AppDelegate.cpp:49:58: No member named 'size' in 'Rect' .../Projects/AppDelegate.cpp:56:53: Use of undeclared identifier 'designRes'

NatWeiss commented 9 years ago

What project is this: cocos2dx or cocos2djs?

Have you tried adding using cocos2d::Size; to your AppDelegate.h?

nanocore commented 9 years ago

Yes u made the changes to get it complied but thought it might be an issue for when someobe generates a new project. I thought that this was part of the templated code.