title: Undefined reference even with mongoose.h included
body: <p>I am trying to run the mongoose c server examples but when I try to compile the examples. I get the following error. How can these reference be missing if I include it in the header? I am compiling under windows with mingw.</p>
  
  <pre><code>gcc echo_server.c -out echo_server
  echo_server.c:(.text+0x35): undefined reference to `mg_send'
  echo_server.c:(.text+0x4a): undefined reference to `mbuf_remove'
  echo_server.c:(.text+0x7f): undefined reference to `mg_mgr_init'
  echo_server.c:(.text+0x9b): undefined reference to `mg_bind'
  echo_server.c:(.text+0xb7): undefined reference to `mg_bind'
  echo_server.c:(.text+0xe7): undefined reference to `mg_mgr_poll'
  </code></pre>
  
  <p>This is the echo_server.c</p>
  
  <pre><code>#include "mongoose.h"
  
  static void ev_handler(struct mg_connection *nc, int ev, void *p) {
    struct mbuf *io = &amp;nc-&gt;recv_mbuf;
    (void) p;
  
    switch (ev) {
      case MG_EV_RECV:
        mg_send(nc, io-&gt;buf, io-&gt;len);  // Echo message back
        mbuf_remove(io, io-&gt;len);        // Discard message from recv buffer
        break;
      default:
        break;
    }
  }
  
  int main(void) {
    struct mg_mgr mgr;
    const char *port1 = "1234", *port2 = "127.0.0.1:17000";
  
    mg_mgr_init(&amp;mgr, NULL);
    mg_bind(&amp;mgr, port1, ev_handler);
    mg_bind(&amp;mgr, port2, ev_handler);
  
    printf("Starting echo mgr on ports %s, %s\n", port1, port2);
    for (;;) {
      mg_mgr_poll(&amp;mgr, 1000);
    }
    mg_mgr_free(&amp;mgr);
  
    return 0;
  }
  </code></pre>