Compile error: "undefined reference to `__cxa_end_cleanup'"

Compile error: "undefined reference to `__cxa_end_cleanup'"
0.0 0


recently I installed android NDK on MAC, Im trying to run a project using cocos2d. Everything seems to go well. but after compile I get this error. I think it’s a problem with the linker but I dont know how to solve this issue. Im running the bash coming with cocos2dx running the following line for start with the compile:




Can anyone help me to solve this issue? thanks in advance.


Finally I could solve my problem.
I was using the FLAG -fexceptions for compiling and that was breaking my build.

I addded this flag because jsoncpp library is using exceptions, I´ve commented the throw exceptions in the library. If anyone knows how to compile this library properly, please let me know.