I am trying to compile FBreader libraries to use with my project. Two of the .so libraries are being compiled successfully but on the last library it is giving me the following error
jni/NativeFormats/fbreader/src/formats/xhtml/XHTMLReader.cpp:42:31: error: default initialization of an object of const type 'const XHTMLTagInfoList' without a
user-provided default constructor
static const XHTMLTagInfoList EMPTY_INFO_LIST;
^
After looking at the c++ code following is the line where the error is occuring
static const XHTMLTagInfoList EMPTY_INFO_LIST;
And the XHTMLTagInfoList
var is
const XHTMLTagInfoList &XHTMLReader::tagInfos(size_t depth) const {
if (myTagDataStack.size() < depth + 2) {
return EMPTY_INFO_LIST;
}
return myTagDataStack[myTagDataStack.size() - depth - 2]->Children;
}
I am not that good at c++. Please help in resolving the error
After updating to static const XHTMLTagInfoList EMPTY_INFO_LIST{};
Following error is occuring