title: undefined reference to `_imp__ssh_new' for libssh
body: <p>I am trying to create ssh connection from my windows 10 to ubuntu 16.04</p>
  
  <p>Code: download.cpp</p>
  
  <pre><code>#include "libssh.h"
  #include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  int main()
  {
      ssh_session my_ssh_session;
      int rc;
      int port = 22;
      int verbosity = SSH_LOG_PROTOCOL;
      char *password;
      // Open session and set options
      my_ssh_session = ssh_new();
      if (my_ssh_session == NULL)
          exit(-1);
      ssh_options_set(my_ssh_session, SSH_OPTIONS_HOST, "192.168.1.6");
      ssh_options_set(my_ssh_session, SSH_OPTIONS_USER, "sajid");
      ssh_options_set(my_ssh_session, SSH_OPTIONS_LOG_VERBOSITY, &amp;verbosity);
      ssh_options_set(my_ssh_session, SSH_OPTIONS_CIPHERS_C_S,"aes128-ctr");
  
      rc = ssh_connect(my_ssh_session);
      if (rc != SSH_OK)
      {
          fprintf(stderr, "Error: %s\n", ssh_get_error(my_ssh_session)); //HERE IS WHERE I GET THE ERROR
          ssh_free(my_ssh_session);
          exit(-1);
      }
      password = "pass";
      rc = ssh_userauth_password(my_ssh_session, NULL, password);
      if (rc != SSH_AUTH_SUCCESS)
      {
          fprintf(stderr, "Error authenticating with password: %s\n",
              ssh_get_error(my_ssh_session));
          ssh_disconnect(my_ssh_session);
          ssh_free(my_ssh_session);
          exit(-1);
      }
  
  
      ssh_disconnect(my_ssh_session);
      ssh_free(my_ssh_session);
  }
  </code></pre>
  
  <p>Which is showing errors like these:</p>
  
  <p><a href="https://i.stack.imgur.com/4wweZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4wweZ.png" alt="enter image description here"></a></p>
  
  <p>libssh.h is in same folder as download.cpp as well as legacy.h
  Can you please tell me why I am not able to create ssh_session? </p>