OK, thank you so much for trying it out!
I have follow up questions: Why does it have to be compiled in two steps? Why are you using g++ for the second part?
Type: Posts; User: jak888
OK, thank you so much for trying it out!
I have follow up questions: Why does it have to be compiled in two steps? Why are you using g++ for the second part?
I tried putting the dll in the same folder, but the result did not change. I also tried the library in the same directory and linked it from there, to the same result.
Renaming also did not work.
...
Sorry about that!
Both of these give me the cannot find error. Which makes sense as those files do not exist. Should I have them?
Which other two are you referring to?
-l paho-mqtt3c.dll --> cannot find
-l paho-mqtt3c.lib --> cannot find
-l paho-mqtt3c --> undefined reference MQTTClient_Create
-l paho-mqtt3cs.dll -->...
Hi Tim,
thanks for the tip! I have tried that before and it's the same error: cannot find -lpaho-mqtt3c.dll
If I add the .lib extension I get an error: cannot find -lpaho-mqtt3c.lib
Thanks for all your input so far! it's been good getting some confirmation that I'm not completely wrong in what I tried.
Yeah, basically it complains about all the functions. I've tried linking the different files before, with no change in result. As far as I understand it the ...a libs are for the asynchronous...
Here goes:
C:\Users\Pete\Documents\MQTT on C\Examples>gcc MQTT.c -L"C:/Users/Pete/Documents/MQTT on C/Examples/Paho/lib" -lpaho-mqtt3c...
Hello all,
I've been having issues trying to compile the basic example for thepaho MQTT library. I've asked this question on stackoverflow before, where it hasn't gotten any traction, so I'm...