From other forum - is possible returns smart pointer between DLL,.so method boundary.
Table *soGetTable(Client *client, char *name)
{
//
return client->Table(*tn).release(); //<====== here
}
And on the other side of the call, do:
std::unique_ptr<Table> ptr;
ptr.reset(soGetTable(param, param));
Must be the same CRT. Is possible extract new,delete methods to shared library uses by both:program and shared library?