ml4a / ml4a-ofx

A collection of openFrameworks apps for working with machine learning
http://ml4a.github.io
1.22k stars 279 forks source link

Convnet Predictor Issue - Virtual Function Clear has different definition than function it overrides #32

Closed heaversm closed 5 years ago

heaversm commented 5 years ago

Error building convnet predictor:

/src/PipelineThreaded.h:19:18: Virtual function 'clear' has a different return type ('void') than the function it overrides (which has return type 'bool')

ofx 10.0 on OSX 10.13.6 (XCode)

genekogan commented 5 years ago

this should be fixed now. let me know if it doesn't compile still.

amozeng commented 5 years ago

Hi I was trying to run the FacePredictor app, and just got the same error:

PipelineThreaded.h:19:18: Virtual function 'clear' has a different return type ('void') than the function it overrides (which has return type 'bool')

Thanks!

amozeng commented 5 years ago

This can get fixed by changing the method type from void to bool, and return bool in each function. Just like the update in "ConvnetPredictor" app