The prototype of subscribe_callback in mosquitopp.h doesn't match the function definition in mosquittopp.cpp -- the one in the header has a parameter bool retained that doesn't appear in the impl.
The result is that client code that calls this function will produce a link error, since it's calling a function with a different mangled name than the one implemented. There will also be a warning or error if compiling with strict prototype checking:
/Users/snej/Couchbase/Tools/couchbase-mobile-tools/vendor/mosquitto/lib/cpp/mosquittopp.cpp:156:19: error: no previous prototype for function 'subscribe_callback' [-Werror,-Wmissing-prototypes]
mosqpp_EXPORT int subscribe_callback(
^
It looks as though the parameter should be removed from the header. The implementation just calls through to mosquitto_subscribe_callback, which has no corresponding retained parameter, so there's no point in passing one to the C++ function.
The prototype of
subscribe_callbackin mosquitopp.h doesn't match the function definition in mosquittopp.cpp -- the one in the header has a parameterbool retainedthat doesn't appear in the impl.The result is that client code that calls this function will produce a link error, since it's calling a function with a different mangled name than the one implemented. There will also be a warning or error if compiling with strict prototype checking:
It looks as though the parameter should be removed from the header. The implementation just calls through to
mosquitto_subscribe_callback, which has no correspondingretainedparameter, so there's no point in passing one to the C++ function.