New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble building paho.mqtt.cpp #130
Comments
What version of g++? I believe the default compiler on CentOS 6 was pretty old. The Paho library requires a conforming C++11 compiler, so for g++, that's at least v4.8, I believe. What is shown with the command:
|
It appears that I was indeed using g++ 4.4.7. However I just updated it to g++ 4.8.2 and I still get the same errors after running |
Are you sure that 4.8.2 is now the default compiler? If all of that looks good, maybe you need to regenerate the CMake cache? Delete your build directory and re-run CMake. If that fails, post the full output from the initial CMake command, at least up until the first few errors. And then, try a build using the default GNU Makefile in the top directory. Just:
|
I regenerated the CMake cache and it worked, thank you! |
I'm trying to install paho.mqtt.cpp on a VM running CentOs 6. I have successfully installed and used paho.mqtt.c, but when I try to build paho.mqtt.cpp I get a lot of errors after the
make
command :.....and so on for quite a while.
The errors end by
I have no idea what went wrong since I was only following the build instructions? The C++ compiler on my system is g++.
Thanks in advance for your help.
Héloïse
The text was updated successfully, but these errors were encountered: