Forums » C++ Framework » Port iphone cocos2d-x game to android »
| Yang Huang | Port iphone cocos2d-x game to android | ||||
|---|---|---|---|---|---|
|
Added by Yang Huang almost 2 years ago
Hi all, I am trying to port an iphone cocos2d-x game to android. But I got a few issues. 2) When I remove the try...catch... block in the cpp source code and use the APP_STL := stlport_static option. The compiler stops due to "isdigit()" hasn't declared in the scope. I found that the "isdigit()" function is declared in the /usr/include/ in the xcode reference. How can I let the compiler to search the /usr/include/ directory? Thank you! |
||||
| Minggo Zhang | RE: Port iphone cocos2d-x game to android | ||||
|
Added by Minggo Zhang almost 2 years ago
Did you include the corresponding hearder files? |
||||
| Yang Huang | RE: Port iphone cocos2d-x game to android | ||||
|
Added by Yang Huang almost 2 years ago
Thank you! Minggo! |
||||
| Zhe Wang | RE: Port iphone cocos2d-x game to android | ||||
|
Added by Zhe Wang almost 2 years ago
You had better not to use try...catch, I'm not sure if it's supported on all platforms. Enjoy Coding, Enjoy Life. |
||||
| Yang Huang | RE: Port iphone cocos2d-x game to android | ||||
|
Added by Yang Huang almost 2 years ago
Yes, a thread on Android group(http://groups.google.com/group/android-ndk/browse_thread/thread/89db67ed1fbf6450?pli=1) said not to use try...catch. |
(1-4/4)