c++ - Symbol in Text section yet undefined -
i have built xerces on hp-ux using c++. builds executables link against libxerces-c-3.1.sl. while running of them getting symbol not found error:
shlib_path=../lib ./domcount /usr/lib/dld.sl: unresolved symbol: _znk11xercesc_3_113xmlbigdecimal10getrawdataev (data) /home/build/hp-ux/lib/libxerces-c-3.1.sl [hp aries32]: core file 32-bit pa-risc application [hp aries32]: /home/build/hp-ux/bin/domcount saved /home/build/hp-ux/bin/core.domcount segmentation fault (core dumped)
i executed nm command shows symbol undefined. can see xercesc_3_1::xmlbigdecimal::getrawdata() in text section well.
nm -pxan libxerces-c-3.1.sl | c++filt | grep getrawdata ../lib/libxerces-c-3.1.sl:0x002c2ac8 t xercesc_3_1::xmlabstractdoublefloat::getrawdata() const ../lib/libxerces-c-3.1.sl:0x002c5390 t xercesc_3_1::xmlbigdecimal::getrawdata() const ../lib/libxerces-c-3.1.sl:0x004818c4 t xercesc_3_1::xmldatetime::getrawdata() const ../lib/libxerces-c-3.1.sl:0x00000000 u xercesc_3_1::xmlbigdecimal::getrawdata() const ../lib/libxerces-c-3.1.sl:0x002c2ab0 t xercesc_3_1::xmlabstractdoublefloat::getrawdata() const ../lib/libxerces-c-3.1.sl:0x002c9988 t xercesc_3_1::xmldatetime::getrawdata() const ../lib/libxerces-c-3.1.sl:0x002c5378 t xercesc_3_1::xmlbigdecimal::getrawdata() const ../lib/libxerces-c-3.1.sl:0x002c99a0 t xercesc_3_1::xmldatetime::getrawdata() const
can me understand how can symbol undefined if in text section? or misunderstanding something?
edit: in code can see inline function definition inside code, why symbol not found issue:
inline xmlch* xmlbigdecimal::getrawdata() const { return frawdata; }
Comments
Post a Comment