Dynamic casts returns null when library with C++ python extensions is used as a plugin on RHEL5 -
i have library c++ python extensions (c++ calls python in turn calls c++) using boost::python , python libraries (this messy, lot of legacy) when tested standalone works correctly. in particular, dynamic_cast works correctly. but when library packaged use plugin on rhel5 using gcc 4.1.2 external application, dynamic_cast returns null resulting in application not working expected. on windows (tested vista 64 bit using visual studio 2005 , 2008) works fine. when debugged using ddd instance, able see pointer before casting has right type_name (slightly mangled compiler usual, suppose?). specific debugging tips here of help. a reinterpret_cast solved problem. while baulked at, @ loss how proceed, esp. since due issues external app. convoluted mess , seems futile, if can here sample code. following c++ snippet creates "smart_handle" queue python commands stored in string "input". string import imports locations , definitions of functions called boost::python::exe...