title: Using MySQL Connector/C++ in Xcode: -libmysqlcppconn library not found
body: <p>I'm trying to use MySQL Connector/C++ within Xcode. I have installed MySQL server. I also installed MySQL Connector/C++ and Boost using brew. I believe all files are where they should be.</p>
  
  <p>I've included library search paths:</p>
  
  <p>1) /usr/local/mysql-5.6.24-osx10.8-x86_64/lib</p>
  
  <p>2) /usr/local/mysql/lib</p>
  
  <p>I am just trying to get simple code to run before I dive a little deeper:</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;iostream&gt;
  
  #include "mysql_connection.h"
  #include "mysql_driver.h"
  #include &lt;cppconn/driver.h&gt;
  #include &lt;cppconn/exception.h&gt;
  #include &lt;cppconn/resultset.h&gt;
  #include &lt;cppconn/statement.h&gt;
  #include &lt;cppconn/prepared_statement.h&gt;
  
  using namespace std;
  
  int main(int argc, const char * argv[]) {
  
      sql::mysql::MySQL_Driver *driver;
      sql::Connection *con;
  
      driver = sql::mysql::get_mysql_driver_instance();
  
      con = driver-&gt;connect("tcp://127.0.0.1:3306", "user", "password");
  
      delete con;
  
      return 0;
  }
  </code></pre>
  
  <p>The error I'm getting is: <code>ld: library not found for -libmysqlcppconn</code></p>
  
  <p>Any help would be greatly appreciated!</p>