I'm trying to install the MQTT C++ library from Paho on a VM running CentOs 6. I have successfully installed and used paho.mqtt.c, but when I try to build paho.mqtt.cpp (following the instructions form the github repository) I get a lot of errors :
[ 7%] Building CXX object src/CMakeFiles/OBJS.dir/async_client.cpp.o
In file included from /home/heloise/paho.mqtt.cpp/src/mqtt/async_client.h:28,
from /home/heloise/paho.mqtt.cpp/src/async_client.cpp:19:
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:37: erreur: expected nested-name-specifier before ‘byte’
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:37: erreur: ‘byte’ has not been declared
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:37: erreur: expected ‘;’ before ‘=’ token
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:37: erreur: expected unqualified-id before ‘=’ token
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:40: erreur: expected nested-name-specifier before ‘string’
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:40: erreur: ‘string’ has not been declared
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:40: erreur: expected ‘;’ before ‘=’ token
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:40: erreur: expected unqualified-id before ‘=’ token
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:42: erreur: expected nested-name-specifier before ‘binary’
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:42: erreur: ‘binary’ has not been declared
/home/heloise/paho.mqtt.cpp/src/mqtt/types.h:42: erreur: expected ‘;’ before ‘=’ token
make[2]: *** [src/CMakeFiles/OBJS.dir/async_client.cpp.o] Erreur 1
make[1]: *** [src/CMakeFiles/OBJS.dir/all] Erreur 2
make: *** [all] Erreur 2
I have no idea what went wrong since I was only following the build instructions?
Thanks in advance for your help.