Error in buidling mqtt client in qt creator

75 views
Skip to first unread message

Satyam Mishra

unread,
Aug 9, 2017, 2:05:02 AM8/9/17
to MQTT
Hello All,
I am trying  to build sample mqtt client on qt creator.
When i try to build it using g++ it its compiles and run without giving any error but
as try to build it on qt creator it gives the following error.

*******************************************************************************
                        Error output
*******************************************************************************

In function 'int main(int, char**)':

/main.cpp:39:23: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]

pubmsg.payload = PAYLOAD;

^

make: *** [main.o] Error 1

10:37:18: The process "/usr/bin/make" exited with code 2.

Error while building/deploying projecQt 5.7.0 GCC 64bit)

When executing step "Make"

******************************************************************************************

Please find the program at following location:

https://eclipse.org/paho/clients/c/


Regards,

Satyam



Reply all
Reply to author
Forward
0 new messages