Skip to main content

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

My current development branch is working. I can look to see if there is something I did to fix this specific problem.

Hopefully a simple patch will fix this right now, then I can follow up with my current version. That one should carry us until a formal, coordinated release (1.1?)


On 06/18/2014 10:31 AM, Ian Craggs wrote:

I don't think there have been any updates to the externals that should have affected the C++ wrapper.  I hope I'd have told you otherwise :-)

I'll try building when I get home - none of my machines at work have a recent enough version of gcc.


On 06/18/2014 03:23 PM, Frank Pagliughi wrote:
The Paho C++ library is a wrapper around the C library. The C library has had a number of updates and improvements since the last C++ update. Perhaps compatibility was broken between the versions. I will look and patch accordingly.


On 06/18/2014 07:20 AM, Joerg Wende wrote:

I've just tried to compile the samples of the Paho MQTT C++ client, but it
looks to me that the make file contains some hard coded references to other

user@ubuntu:~/git/org.eclipse.paho.mqtt.cpp/src/samples$ make
g++ -I.. -I/home/fmp/static/opensrc/mqtt/paho/org.eclipse.paho.mqtt.c/src
-D_NDEBUG -Wall -std=c++0x -O2 -o async_publish async_publish.cpp -L../lib
-lmqttpp -lmqttv3a
In file included from async_publish.cpp:23:0:
../mqtt/async_client.h:28:24: fatal error: MQTTAsync.h: Datei oder
Verzeichnis nicht gefunden
  #include "MQTTAsync.h"
compilation terminated.
make: *** [async_publish] Fehler 1

After fixing the references make returns the following errors:

user@ubuntu:~/git/org.eclipse.paho.mqtt.cpp/src/samples$ make
g++ -I.. -I/home/user/git/include -D_NDEBUG -Wall -std=c++0x -O2 -o
async_publish async_publish.cpp -L../lib -L/home/user/git/lib -lmqttpp
/tmp/cc63PFvQ.o: In Funktion `std::_Sp_counted_ptr_inplace<mqtt::message,
std::allocator<mqtt::message>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
 Nicht definierter Verweis auf `mqtt::message::~message()'
/tmp/cc63PFvQ.o: In Funktion `std::__shared_ptr<mqtt::message,
char const*&>(std::_Sp_make_shared_tag, std::allocator<mqtt::message>
const&, char const*&)':
 Nicht definierter Verweis auf `mqtt::message::message(std::string const&)'
/tmp/cc63PFvQ.o: In Funktion `main':
async_publish.cpp:(.text.startup+0x179): Nicht definierter Verweis auf
`mqtt::async_client::async_client(std::string const&, std::string const&)'
async_publish.cpp:(.text.startup+0x195): Nicht definierter Verweis auf
async_publish.cpp:(.text.startup+0x1a7): Nicht definierter Verweis auf
async_publish.cpp:(.text.startup+0x289): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&,
async_publish.cpp:(.text.startup+0x340): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&, void const*, unsigned int,
int, bool)'
async_publish.cpp:(.text.startup+0x46f): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&,
std::shared_ptr<mqtt::message>, void*, mqtt::iaction_listener&)'
async_publish.cpp:(.text.startup+0x5e1): Nicht definierter Verweis auf
`mqtt::async_client::publish(std::string const&,
std::shared_ptr<mqtt::message>, void*, mqtt::iaction_listener&)'
async_publish.cpp:(.text.startup+0x65b): Nicht definierter Verweis auf
`mqtt::async_client::get_pending_delivery_tokens() const'
async_publish.cpp:(.text.startup+0x777): Nicht definierter Verweis auf
async_publish.cpp:(.text.startup+0x79b): Nicht definierter Verweis auf
collect2: error: ld returned 1 exit status
make: *** [async_publish] Fehler 1

Any guess ?


Mit freundlichen Grüßen / Kind regards

Joerg Wende

Leading Technical Sales Professional
Certified Consult. IT Specialist / Business Integration
IBM Sales & Distribution, Software Sales
 Phone:            +49-351-4974-429         IBM Deutschland                    (Embedded 
                                                                             image moved 
                                                                                to file: 
 Mobile:           +49-171-2229636          Freiberger Str.35                            
 E-Mail:           jwende@xxxxxxxxxx        1067 Dresden                                 
 IBM Deutschland                                                                         
 GmbH /                                                                                  
 Vorsitzender des                                                                        
 Martin Jetter                                                                           
 Martina Koederitz                                                                       
 Reinhard Reschke,                                                                       
 Dieter Scholz,                                                                          
 Gregor Pillen,                                                                          
 Christian Noll,                                                                         
 Ivo Koerner                                                                             
 Sitz der                                                                                
 Ehningen /                                                                              
 Stuttgart, HRB                                                                          
 14562 /                                                                                 
 WEEE-Reg.-Nr. DE                                                                        

paho-dev mailing list

paho-dev mailing list

Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Committer on Paho, Mosquitto

paho-dev mailing list

Back to the top