Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] compiling guide for e.g. MQTTTet_v2.c in linux

Hi,

 

Dose someone here, how have a simple guide, a ”howto” to create a makefile to compile one of the c files proided in the test folder ?

 

Currently I am getting some linker error:

 

main.c:(.text+0xb4): undefined reference to `MQTTClient_create'

main.c:(.text+0xd8): undefined reference to `MQTTClient_connect'

main.c:(.text+0x138): undefined reference to `MQTTClient_publishMessage'

main.c:(.text+0x170): undefined reference to `MQTTClient_waitForCompletion'

main.c:(.text+0x198): undefined reference to `MQTTClient_disconnect'

main.c:(.text+0x1a4): undefined reference to `MQTTClient_destroy'

 

I am not that sharp in writing makefile especially not linking obj and lib, any help/hint  is much appreciated

 

Thx in advance

Acp


Back to the top