m_hnd is null
ameya7295 opened this issue · comments
ameya7295 commented
sample-cpp-plugin-master/./psdk/loader.hpp:55: Plugin::Plugin(std::string): Assertion `m_hnd != nullptr' failed.
Aborted (core dumped)
May I know, why this issue is generated.
I am running on Linux Ubuntu machine.
gcc version is 9.3
ameya7295 commented
Update :
in loader.hpp : 50
if I change m_hnd = dlopen(m_file.c_str(), RTLD_LAZY);
to m_hnd = dlopen("./PluginA.so", RTLD_LAZY);
it works.
haithink commented
Update : in loader.hpp : 50 if I change
m_hnd = dlopen(m_file.c_str(), RTLD_LAZY);
tom_hnd = dlopen("./PluginA.so", RTLD_LAZY);
it works.
Same with you. Fix the so file path。