eclipse / paho.mqtt.cpp

Other
960 stars 420 forks source link

Build error in Xcode project #488

Open JSatyam opened 3 months ago

JSatyam commented 3 months ago

We try to build Paho v2.0 in C++ project in Xcode, Please check and help

Undefined symbols: _MQTTProperties_free, referenced from: mqtt::properties::~properties() in libcore-main.a19 mqtt::properties::properties(), referenced from: test::MqttClientHelper::connect(std::1::basic_string<char, std::__1::char_traits, std::1::allocator> const&) in libcore-main.a19 clang: error: linker command failed with exit code 1 (use -v to see invocation)

fpagliughi commented 1 week ago

I haven't been able to reproduce this error. I'm not sure what version you're testing since there is not a v2.0 release of this library.

But a number of CMake build issues concerning transitive dependencies between the libraries have been resolved with the latest code that is about to be released in v1.4 (currently in master), so please try that out, and let us know if it fixes the problem.