Open manjunathsubramanya opened 7 years ago
While doing make inside a MQTTSNClient directory it is failing to compile it. There is nothing mentaioned in the README.txt. As below:
make g++ -o Build/TomyClient Build/src/LinuxClientSample.o Build/src/lib/mqttsnClientAppFw4Linux.o Build/src/lib/mqttsn.o Build/src/lib/mqttsnClient.o Build/src/lib/zbeeStack.o Build/src/lib/udpStack.o Build/src/lib/mqUtil.o Build/src/LinuxClientSample.o: In function f_publish_all()': LinuxClientSample.cpp:(.text+0x153): undefined reference toMqttsnClientApplication::publish(MQString, Payload, unsigned char)' Build/src/LinuxClientSample.o: In function f_onRequest_01(MqttsnPublish*)': LinuxClientSample.cpp:(.text+0x344): undefined reference toMqttsnClientApplication::publish(MQString, Payload, unsigned char)' Build/src/lib/mqttsnClientAppFw4Linux.o: In function MqttsnClientApplication::initialize(int, char**)': mqttsnClientAppFw4Linux.cpp:(.text+0x439): undefined reference totheAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x448): undefined reference to theAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x45d): undefined reference totheAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x467): undefined reference to theAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x46d): undefined reference totheAppConfig' Build/src/lib/mqttsnClientAppFw4Linux.o:mqttsnClientAppFw4Linux.cpp:(.text+0x473): more undefined references to `theAppConfig' follow collect2: error: ld returned 1 exit status Makefile:34: recipe for target 'Build/TomyClient' failed make: *\ [Build/TomyClient] Error 1 Please help if any modifications in source code. Thanks Manjunath
make g++ -o Build/TomyClient Build/src/LinuxClientSample.o Build/src/lib/mqttsnClientAppFw4Linux.o Build/src/lib/mqttsn.o Build/src/lib/mqttsnClient.o Build/src/lib/zbeeStack.o Build/src/lib/udpStack.o Build/src/lib/mqUtil.o Build/src/LinuxClientSample.o: In function f_publish_all()': LinuxClientSample.cpp:(.text+0x153): undefined reference toMqttsnClientApplication::publish(MQString, Payload, unsigned char)' Build/src/LinuxClientSample.o: In function f_onRequest_01(MqttsnPublish*)': LinuxClientSample.cpp:(.text+0x344): undefined reference toMqttsnClientApplication::publish(MQString, Payload, unsigned char)' Build/src/lib/mqttsnClientAppFw4Linux.o: In function MqttsnClientApplication::initialize(int, char**)': mqttsnClientAppFw4Linux.cpp:(.text+0x439): undefined reference totheAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x448): undefined reference to theAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x45d): undefined reference totheAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x467): undefined reference to theAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x46d): undefined reference totheAppConfig' Build/src/lib/mqttsnClientAppFw4Linux.o:mqttsnClientAppFw4Linux.cpp:(.text+0x473): more undefined references to `theAppConfig' follow collect2: error: ld returned 1 exit status Makefile:34: recipe for target 'Build/TomyClient' failed
f_publish_all()': LinuxClientSample.cpp:(.text+0x153): undefined reference to
f_onRequest_01(MqttsnPublish*)': LinuxClientSample.cpp:(.text+0x344): undefined reference to
MqttsnClientApplication::initialize(int, char**)': mqttsnClientAppFw4Linux.cpp:(.text+0x439): undefined reference to
theAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x45d): undefined reference to
theAppConfig' mqttsnClientAppFw4Linux.cpp:(.text+0x46d): undefined reference to
Please help if any modifications in source code. Thanks Manjunath
I have the same problem. Hope someone can share some solution
While doing make inside a MQTTSNClient directory it is failing to compile it. There is nothing mentaioned in the README.txt. As below: