Mqtt paho client usage

what is correct way of using mqtt-client paho in application?
I have took https://github.com/mangOH/MqttClient/tree/use_paho_linux_version built and installed it on device (wp77xx)
and wants to add testSubscriber.c code to my app.

I add in .cdef file
requres { api: mqtt.api …

and in .adef file
bindings: {
myApp.myCop.mqtt -> mqttClient.mqtt …

but adding this binding makes application dead

What is correct way to use it? What should be in binding?