Example MQTT Client Code not working C
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I got the example code from here . I have the header file MQTTClient.h as well. However when I build I get the errors: undefined reference to MQTTClient_create undefined reference to MQTTClient_connect undefined reference to MQTTClient_publishMessage undefined reference to MQTTClient_waitForCompletion undefined reference to MQTTClient_disconnect In the header file these are set up as follows: DLLExport int MQTTClient_create(MQTTClient* handle, const char* serverURI, const char* clientId, int persistence_type, void* persistence_context); I am