I have been using python PAHO with no problem , i decided to use CPP on CPP project in QT IDE (not a Qt project)
i downloaded the zip file form repository on paho , u