Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Trouble building paho.mqtt.cpp

The C++ compiler on my system is g++.

I created an issue on Github : https://github.com/eclipse/paho.mqtt.cpp/issues/130

Thanks
Héloïse

2017-10-23 16:55 GMT+02:00 Frank Pagliughi <fpagliughi@xxxxxxxxxxxxxx>:
What is the C++ compiler on your system?

And... it may be best for you to create an issue on the GitHub site to track this. We can move the conversation there:
https://github.com/eclipse/paho.mqtt.cpp/issues

Frank


On 10/23/2017 08:57 AM, Heloise Chevalier wrote:
Hi,

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

.....and so on for quite a while. 

The errors end by


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.

Héloïse


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


Back to the top