Jump to content

Plugin example error


photo

Recommended Posts

In the plugin code example (C++ api).

 

The example function prototype for update in class MyPlugin is

virtual void update();

the implementation is

int MyPlugin::update() {

   Log::warning("MyPlugin::update(): called\n");

   return 1;
}

This will fail on newer versions of GCC at least.

The implementation should read

void MyPlugin::update() {

   Log::warning("MyPlugin::update(): called\n");


}

documentation should be updated

edit: implementation needs to change not prototype since that would conflict with inherited function.

Link to comment
  • 3 weeks later...
×
×
  • Create New...