title: Eclipse C++ undefined reference
body: <p>I am trying to use <code>libmodbus</code> and i have the following :</p>
  
  <pre><code>extern "C" {
  #include "modbus.h"
  #include "modbus-tcp.h"
  }
  
  void executeMbus() {
      modbus_t *mb;
      uint16_t tab_reg[32];
      mb = modbus_new_tcp("127.0.0.1", 1502);
      modbus_connect(mb);
  
      /* Read 5 registers from the address 0 */
      modbus_read_registers(mb, 0, 5, tab_reg);
  
      modbus_close(mb);
      modbus_free(mb);
  }
  </code></pre>
  
  <p>I have added the path to the library in <code>C/C++ General -&gt;  Paths and Symbols GNU C++</code> and i added the path to the modbus lib.
  However i'm getting weird undefined reference for each <code>modbus_</code> method.
  How can i fix it ?</p>