title: Connector/C mysql for C language
body: <p>i wasted my whole night searching for this solution to connect mysql with C.
  I just started working with C few days ago and wanted to use MYSQL.</p>
  
  <p>if found this small script but it doesn't work</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;mysql.h&gt;
  
  int main(int argc, char **argv)
  {
  printf("MySQL client version: %s\n", mysql_get_client_info());
  
  exit(0);
  }
  </code></pre>
  
  <p></p>
  
  <p>Here is the error that i get</p>
  
  <pre><code>\Local\Temp\ccV0Dljg.o:mysql.c:(.text+0x38): undefined reference to `mysql_get_client_info@0'
  collect2.exe: error: ld returned 1 exit status
  [Finished in 1.1s]
  </code></pre>
  
  <p>i am using windows 10, i found some sites telling about linux and ubunto installation but i need a solution for windows.</p>
  
  <p>i am using Connector/C 6.1.6 Windows (x86, 32-bit), MSI Installer   </p>