title: MySQL And C applications
body: <p>When building a application that accesses a MySQL database on linux using C/C++ i have to dynamically link into the mysql client library.  Is there a way in which i can statically link the application so that the mysql client libraries are no longer required?</p>
  
  <p>What is the best practice, with regards to C\C++ development, to include rather long queries in the application but outside the code?  Using stored procedures an not possible as the database runs on a MySQL 4 server.</p>