Issue
I have problem with building my android project with c++ file. It says that I must compile with C++11:
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
And I know what this means, but I want to use c++11. And I have it included in gradle config:
android.ndk {
moduleName = "native"
stl = "gnustl_static"
cppFlags += "-std=c++11"
cppFlags += "-fexceptions"
ldLibs.addAll(['android', 'log', 'OpenSLES'])
}
For what I searched, everyone has it same and it works. Does anybody know what is the problem?
Solution
Problem solved, it must be
CFlags.add("-std=c11")
Answered By - Syntey
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.