This is what I got when I run the project
Building project ...
Building main.cpp...
Makefile:512: recipe for target '/root/Bela/projects/O2O-main/build/main.o' failed
Build finished
no viable conversion from 'int (oscpkt::Message, void *)' to 'std::function<void (oscpkt::Message *, const char *, void *)>' column: 32, line: 395
/root/Bela/projects/O2O-main/main.cpp:395:32: error: no viable conversion from 'int (oscpkt::Message, void *)' to 'std::function<void (oscpkt::Message *, const char *, void *)>'
oscReceiver.setup(gLocalPort, parseMessage);
^~~~~~~~~~~~
/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/c++/6.3.0/functional:1868:7: note: candidate constructor not viable: no known conversion from 'int (oscpkt::Message, void *)' to 'nullptr_t' for 1st argument
function(nullptr_t) noexcept
^
/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/c++/6.3.0/functional:1879:7: note: candidate constructor not viable: no known conversion from 'int (oscpkt::Message, void *)' to 'const std::function<void (oscpkt::Message *, const char *, void *)> &' for 1st argument
function(const function& __x);
^
/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/c++/6.3.0/functional:1888:7: note: candidate constructor not viable: no known conversion from 'int (oscpkt::Message, void *)' to 'std::function<void (oscpkt::Message *, const char *, void *)> &&' for 1st argument
function(function&& __x) : _Function_base()
^
/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/c++/6.3.0/functional:1914:2: note: candidate template ignored: substitution failure [with _Functor = int (*)(oscpkt::Message, void *), $1 = void]: no type named 'type' in 'std::result_of<int (*&(oscpkt::Message *, const char *, void *))(oscpkt::Message, void *)>'
function(_Functor);
^
./libraries/OscReceiver/OscReceiver.h:39:94: note: passing argument to parameter 'on_receive' here
void setup(int port, std::function<void(oscpkt::Message* msg, const char* addr, void* arg)> on_receive, void* callbackArg = nullptr);
^
1 error generated.
make: *** [/root/Bela/projects/O2O-main/build/main.o] Error 1