c++ - RTTI check fails on remote Linux machine -


i use c++/qt project , facing strange issue.

my application runs fine on native linux machine , windows. problem appears when use remote linux machine execute program , use x windows server (i use xming) view/use it.the debugger points line dynamic_cast fails object pointer(the cast returns nice null) instead of actual object wanted.

i suspect configuration issue must missing enable these runtime checks.

anyone has faced such issues, pointers towards solution welcome.

how have linked? had similar problem our java plug-ins. if dynamic_cast in different dll dll object constructed, rtld_global must set in call dlopen when dlls loaded. if dlls loaded implicitly, whether set depend on how set dll triggering load (which means may have no control on it). in end, had ensure no .so loaded implicitly (by having java load special loader dll, loaded explicitly, in dependency order).

note may not problem; i'm guessing, since don't have enough information. had same symptoms.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -