-
sromicLikes 0Problem Description
Dear sir,
When I try to compile my app for android, many std functions such as
std::to_string(), std::stoi() etc do not work.
I get an error message like:
error: 'to_string' is not a member of 'std'
std::string s = std::to_string(i);
Please help as soon as possible. I am in the middle of a very critical task.
Thank you,Sourav
-
Sonar Systems adminLikes 0
Is this with any framework or android project or just normal android dev?
This reply has been verified.
-
sromicLikes 0
sdkbox is added along with Facebook sdk. But I don’t think that is of any consequence, as in normal android dev as well, I get the error if I use std::to_string() in my code.
This reply has been verified.
-
Sonar Systems adminLikes 0
So it is a Cocos2d-x project?
This reply has been verified.
-
sromicLikes 0
Yes. it is. Apparently gnustl_static in android ndk does not support few functions of std, such as std::to_string(), std::stoi() etc.
This reply has been verified.
-
Sonar Systems adminLikes 0
What version of everything are you using?
This reply has been verified.
-
sromicLikes 0
Cocos2d-x 3.15
android ndk r15 darwin x86-64
apache ant 1.10.1
andriod studio ide 162.3934792
This reply has been verified.
-
Sonar Systems adminLikes 0
Try android ndk 13 and eclipse and see if that works.
This reply has been verified.
-
sromicLikes 0
How do I compile android projects with eclipse?
cocos compile -p android --android-studio
compiles only for android studio, and if I omit that flag, I get an error stating eclipse is not supportedThis reply has been verified.
-
Sonar Systems adminLikes 0
Our Cocos Console tutorial series will help you with this http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos-console
This reply has been verified.
-
sromicLikes 0
Thank you.
This reply has been verified.
-
Sonar Systems adminLikes 0
Your welcome :D
This reply has been verified.
Login to reply