paho.mqtt.embedded-c
paho.mqtt.embedded-c copied to clipboard
MS Visual Studio 2015 supported?
Hi,
I'm trying to compile this code using Windows 10 and MSVC 2015 and I can't get it to compile. Some errors are about linux.cpp and missing the "sys/socket.h" header but that seems to only be sample files. The main issue seems to be that it is missing the import libraries. There are three DLLs but no corresponding import library.
Using CMake-GUI, I tried adding "/DWIN64_DLL" to the "CXXFLAGS" variable hoping it would add "__declspec(dllexport)" and generate the import library but it doesn't get added to the command line when MQTTPacket\src files are compiled.
I tried running the compile and link commands manually in that directory but that then causes the link stage to fail with "unresolved external symbol MQTTDeserializeconnack" (and other functions).
Jamie
Hi. This code is structured as a series of toolkits so that adding support for other operating systems is relatively easy. Windows support is not currently built in, because the main Paho C client is what is normally used (https://github.com/eclipse/paho.mqtt.c) on Windows. The idea of this client is to minimise resource use to the max.