Mine compiles and links. When I go to run the executable I get:
IncrementalExecutor::executeFunction: symbol '_ZN10MainWindow28HandleDisconnectAndTerminateEv' unresolved while linking symbol '__cf_2'!
You are probably missing the definition of MainWindow::HandleDisconnectAndTerminate()
Maybe you need to load the corresponding shared library?
Error in \<TClingCallFunc::make_wrapper\>: Failed to compile
==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
__attribute__((used)) __attribute__((annotate("__cling__ptrcheck(off)")))
extern "C" void __cf_2(void* obj, int nargs, void** args, void* ret)
{
((MainWindow*)obj)->HandleDisconnectAndTerminate();
return;
}
#pragma clang diagnostic pop
==== SOURCE END ====
Error in <TClingCallFunc::Exec(address, interpVal)>: Called with no wrapper, not implemented!
When I look at the symbols with:
readelf -s --wide gui | grep HandleDisconnectAndTerminate
I get:
FUNC GLOBAL DEFAULT 16 _ZN10MainWindow28HandleDisconnectAndTerminateEv