The error tells you what to do: use -fexceptions to enable
.
You would add that to your Android.mk, APP_CPPFLAGS += -fexceptions -frtti
.
Also, your code is wrong. Change your code to doc.parse<0>(&buffer[0]);
. c_str()
returns a const char pointer which is non-modifiable, however parse
modifies the contents so you need to pass the underlying buffer.