Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Compiling C++ client

Hi,

I'm having problems compiling the C++ library, can anybody assist?

I've done:

export PAHO_C_LIB=<path to Paho C repo>
cd src
make -f ../Makefile

The error I get is:

async_client.cpp: In constructor ‘mqtt::async_client::async_client(const string&, const string&, mqtt::iclient_persistence*)’:
async_client.cpp:76:3: error: could not convert ‘{persistence, mqtt::iclient_persistence::persistence_open, mqtt::iclient_persistence::persistence_close, mqtt::iclient_persistence::persistence_put, mqtt::iclient_persistence::persistence_get, mqtt::iclient_persistence::persistence_remove, mqtt::iclient_persistence::persistence_keys, mqtt::iclient_persistence::persistence_clear, mqtt::iclient_persistence::persistence_containskey}’ from ‘<brace-enclosed initializer list>’ to ‘MQTTClient_persistence’
   };
   ^
make: *** [obj/async_client.o] Error 1

Cheers,

Roger


Back to the top