Skip to main content

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

I'll have a look. I've been sitting on an update for a while now, and haven't checked the current code against the latest C library (which it wraps).

What host / OS / compiler / version(s) are you trying this with?

Frank

On 05/18/2015 02:23 PM, Roger Light wrote:
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



_______________________________________________
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