dynamic_cast failed when hiding symbol
问题 I have many static libraries. One is static_lib_a.a. I create a dynamic library, dynamic_lib.so to put them together. In static_lib_a.a, it uses xerces 3.1.1 to parse xml. The following is the code snippet in static_lib_a.a xerces::DOMElement *pElementNode = dynamic_cast<xerces::DOMElement *>(pNode); The type of pNode is xerces::DOMNode. It is assigned to an object of xerces::DOMElement. This line of code will do downcasting. In order to hide all symbols of static_lib_a.a in dynamic_lib.so, I