title: MySql Connector/C++ Undefined Reference Errors
body: <p>I need to write a c/c++ application that connects to a mysql database. I have been trying to install the c &amp; c++ connectors to be able to do this, however I keep getting undefined reference errors. Below is how I set it up, can anyone tell me what I've done wrong?</p>
  
  <p>I'm using WINDOWS 7 64 bit with Netbeans IDE and cygwin compiler.</p>
  
  <p>What I've done:</p>
  
  <ol>
  <li><p>I downloaded and installed win x64 version of c &amp; c++ connectors from mysql.com</p></li>
  <li><p>I followed the tutorial <a href="http://blog.ulf-wendel.de/?p=216" rel="nofollow">Here</a>. From the "Hello World" heading on (Just the netbeans setup stuff). I know the tutorial is for linux. I used it because the netbeans instructions looked the same as windows (the lib extensions are just different)</p></li>
  </ol>
  
  <p>I've tried linking mysql dynamically and statically, but I get the same error.</p>
  
  <p>note: I didn't install the mysql server. I found the required libs in the c connector. Is there a large difference between that one and the one in the server? Are there other libs or includes that are required from the server?</p>
  
  <p>Using the example "Hello World" program in that tutorial I get the error:</p>
  
  <p>NetBeansProjects/CppApplication_11/main.cpp:41: undefined reference to '_get_driver_instance'</p>
  
  <p>Can anyone see what I've done wrong? thanks!</p>