Is there a way to get access to wxGetApp() in the plugin? I've tried adding the wxDECLARE_APP(); macro (also including the header from the main project) but it doesn't work. When wxGetApp() is invoked I get
libPlugin.so: undefined symbol: _Z8wxGetAppv
As a side question: Is this the right approach for creating a plugin system?