title: mysqlcppconn.dll Cannot find or open the PDB file
body: <p>I am trying to build a simple MySQL db application in VC++ and have run into a slight problem.</p>
  
  <p>I am using MySQL Connector C++ 1.1.0 and Visual Studio 2012 (Premium if that matters)</p>
  
  <pre><code>// ConsoleApplication1.cpp : Defines the entry point for the console application.
  //
  
  #include "stdafx.h"
  
  #include &lt;cstdio&gt;
  #include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;sstream&gt;
  #include &lt;memory&gt;
  #include &lt;string&gt;
  #include &lt;stdexcept&gt;
  
  /* MySQL Connector/C++ specific headers */
  #include &lt;driver.h&gt;
  #include &lt;connection.h&gt;
  #include &lt;statement.h&gt;
  #include &lt;prepared_statement.h&gt;
  #include &lt;resultset.h&gt;
  #include &lt;metadata.h&gt;
  #include &lt;resultset_metadata.h&gt;
  #include &lt;exception.h&gt;
  #include &lt;warning.h&gt;
  
  #include "mysql_driver.h"
  #include "mysql_connection.h"
  
  #define DBHOST "tcp://127.0.0.1:3306"
  #define USER "root"
  #define PASSWORD "root"
  #define DATABASE "test"
  
  using namespace std;
  using namespace sql;
  
  int _tmain(int argc, char *argv[]){
      // I'm alive
      cout &lt;&lt; "Hello World!" &lt;&lt; endl;
  
      // necessary variables
      Driver *driver;
      Connection* con;
      Statement *stmt;
      ResultSet *res;
      /*PreparedStatement *prep_stmt;
      Savepoint *savept;*/
  
      //
      driver = get_driver_instance();
  
      // Connect to DB
      con = driver-&gt;connect("tcp//127.0.0.1:3306", "root", "root");
  
      // 
      con-&gt;setAutoCommit(false);
  
      // set schema
      con-&gt;setSchema("world");
  
      // create statement object
      stmt = con-&gt;createStatement();
  
      // alert user
      cout &lt;&lt; "Executing query: \"SELECT * FROM city\"" &lt;&lt; endl;
  
      // execute query "SELECT * FROM city"
      res = stmt-&gt;executeQuery("SELECT * FROM city");
  
      // alert user
      cout &lt;&lt; "\tRetrieved " &lt;&lt; res-&gt;rowsCount() &lt;&lt; " row(s)." &lt;&lt; endl;
  
      // fetch data
      while(res-&gt;next()){
          cout &lt;&lt; res-&gt;getString("Name") &lt;&lt; endl;
      }
  
      system("pause");
  
      // Clean up
      delete res;
      delete stmt;
      /*delete prep_stmt;*/
      con-&gt;close();
      delete con;
  
      return 0;
  } // end main
  </code></pre>
  
  <p>I am building this as a Win32 console application in Debug mode, changed the configuration to x64 and have moved mysqlcppconn.dll to the output directory.
  The code is building correctly (*I think I have correctly added the necessary include directories as well as additional library dependencies/relevant paths). However, when I try to run it I get the following debug output:</p>
  
  <pre><code>'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\RBanerjee\Documents\Visual Studio 2012\Projects\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe'. Symbols loaded.
  'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
  'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
  'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
  'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\RBanerjee\Documents\Visual Studio 2012\Projects\ConsoleApplication1\x64\Debug\mysqlcppconn.dll'. Cannot find or open the PDB file.
  'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\libmysql.dll'. Module was built without symbols.
  'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\libmysql.dll'
  'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\libmysql.dll'. Module was built without symbols.
  'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\libmysql.dll'
  The program '[4172] ConsoleApplication1.exe' has exited with code -1073741701 (0xc000007b).
  </code></pre>
  
  <p>I am a little lost as to what to do next, I really just want to be able to develop a Windows application that can connect to a MySQL db and interact with it. I would appreciate any help with this problem or a pointer to some other tutorial.</p>
  
  <p>Thanks
  Rohit</p>