title: Example MQTT Client Code not working C
body: <p>I got the example code from <a href="https://www.eclipse.org/paho/clients/c/" rel="nofollow">here</a>.
  I have the header file <code>MQTTClient.h</code> as well.</p>
  
  <p>However when I build I get the errors:</p>
  
  <p><code>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</code></p>
  
  <p>In the header file these are set up as follows:</p>
  
  <pre><code>DLLExport int MQTTClient_create(MQTTClient* handle, const char* serverURI,
      const char* clientId, int persistence_type, void* persistence_context);
  </code></pre>
  
  <p>I am using a Windows 8 machine with Eclipse C/C++ IDE</p>
  
  <p>I also have some paho-mqtt.dll's I'm not sure how to get the example code up and running.</p>
  
  <p>Thank you</p>