Hello all,

I've been having issues trying to compile the basic example for the
paho MQTT library. I've asked this question on stackoverflow before, where it hasn't gotten any traction, so I'm hoping someone here can help me.

I downloaded the
pre-built binaries for my system (Windows 10 64) from their projects page. I unpacked the zip file to a folder in the documents folder, where I also created a .c file with the example at the bottom of the Paho product page. My editor is atom and my compiler is gcc. When I tried to compile it in Atom, I got this error:
Code:
undefined reference to MQTTClient_create' 
So I went searching and found plenty of topics, but I still couldn't figure out, how to resolve this issue. From this
stackoverflow topic I gather that it's a linker problem and that I need to link the files during compile, so here's what I tried:
Code:
gcc MQTT.c -L "C:\Users\Pete\Documents\MQTT on C\Examples\Paho\lib"-l paho-mqtt3c

Which still gives me the same undefined reference error. When I try to link to the
dll of the same name, the compiler does not find the file.

Can anyone point me in the right direction, please?
Any help is appreciated!