caiorss / sample-cpp-plugin

C++ cross-platform plugin architechture demonstration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

m_hnd is null

ameya7295 opened this issue · comments

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

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.

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.

Same with you. Fix the so file path。