title: Visual C++ MySQL Connector/C errors?
body: <p>My source code results in this:</p>
  
  <pre><code>// MySQL.cpp : Defines the entry point for the console application.
  //
  
  #include &lt;iostream&gt;
  #include &lt;winsock.h&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;mysql.h&gt;
  
  #define TABLE_OF_INTEREST "some_table"
  #define SERVER_NAME "mysql_server"
  #define DB_USER "user"
  #define DB_USERPASS "pa55w0rd"
  #define DB_NAME "db_name"
  #define NEWLINE "\n"
  
  using namespace std;
  
  int main()
  {
      MYSQL *hnd = NULL; // mysql connection handle
      const char *sinf = NULL; // mysql server information 
      if(!mysql_real_connect(hnd, SERVER_NAME, DB_USER, DB_USERPASS, DB_NAME, 0, NULL, 0)
          cout &lt;&lt; "Something happened.";
      return 0;
  }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>1&gt;------ Build started: Project: MySQL, Configuration: Release Win32 ------
  1&gt;  MySQL.cpp
  1&gt;MySQL.obj : error LNK2001: unresolved external symbol _mysql_real_connect@32
  1&gt;c:\users\josiah\documents\visual studio 2010\Projects\MySQL\Release\MySQL.exe : fatal error LNK1120: 1 unresolved external
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>I don't think there issues with the source, I just need help on how to figure out where the problem is.</p>