Wednesday, April 23, 2014

Error: Loading plugin error: Cannot load library /usr/local/SomeLib/ (/usr/local/SomeLib/ undefined symbol: _ZN18SomePluginModuleD1Ev)

Got this annoying error in QPluginLoader when I deployed and tried to run the application. It took a while before i realized what my mistake was.

I accidentally missed to add a implementation for the destructor and that caused the error message, found this forum post that got me in the right direction:

.h with destructor:

.cpp did not have:
   //clean up...

No comments: