title: Linking to and using libpq with Visual C++ Express 2010
body: <p>I am trying to access from Visual C++ 2010 Express a Postgres database.  I have both on my machine but the SQL calls do not work at all.   I have searched many sites.  I think that this version of Express does not have any default database connections  like the non-express version (especially Visual  C++ 2008).</p>
  
  <p>The only thing I could find was the following link and I have following the modifications to the Project Properties  area of Visual C++  Express.</p>
  
  <p><a href="http://www.askyb.com/cpp/c-postgresql-example/" rel="nofollow">http://www.askyb.com/cpp/c-postgresql-example/</a> </p>
  
  <p>When I try to run the C++ code in that website I get errors indicating that it cannot find the functions.</p>
  
  <p>Do you have any ideas of what I am doing wrong?  Would it be better for me to use something other than Visual C++ Express 2010 to connect to a postgres db?   One of the other Express versions?  The regular (non-express) Visual C++?  </p>
  
  <p>Thanks</p>