Closed nsi-ltd closed 4 years ago
When trying to use this code with a C++ application the runtime was failing to find any exported function. On inspection the typical construct that is added to header files was found to be missing. This should be applied to mqtt.h and mqtt_pal.h
#ifndef __MQTT_H__ #define __MQTT_H__ #ifdef __cplusplus extern "C" { #endif <rest of code> #ifdef __cplusplus } #endif #endif
@nsi-ltd I'd support this. I'm happy to merge a PR with this update :smile:
Hi Liam,
Thank you for your support and efforts in producing this project.
Fixed by @markrad in #102.
Thanks for opening @nsi-ltd
When trying to use this code with a C++ application the runtime was failing to find any exported function. On inspection the typical construct that is added to header files was found to be missing. This should be applied to mqtt.h and mqtt_pal.h