<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libgdamm: libgdamm Reference Manual</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libgdamm <span id="projectnumber">4.1.3</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li class="current"><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <h1>libgdamm Reference Manual </h1> </div> </div> <div class="contents"> <div class="textblock"><h2><a class="anchor" id="description"></a> description</h2> <p>libgdamm is a C++ wrapper for the <a href="http://www.gnome-db.org/">libgda</a> generic database access API.</p> <h2><a class="anchor" id="basics"></a> basics</h2> <p>Include the libgdamm header: </p> <div class="fragment"><pre class="fragment"><span class="preprocessor"> #include <libgdamm.h></span> </pre></div><p> (You may include individual headers, such as <code>libgdamm/connection.h</code> instead.)</p> <p>If your source file is <code>program.cc</code>, you can compile it with: </p> <div class="fragment"><pre class="fragment"> g++ program.cc -o program `pkg-config --cflags --libs libgdamm-4.0` </pre></div><p>Alternatively, if using autoconf, use the following in <code>configure.ac:</code> </p> <div class="fragment"><pre class="fragment"> PKG_CHECK_MODULES([LIBGDAMM], [libgdamm-4.0]) </pre></div><p> Then use the generated <code>LIBGDAMM_CFLAGS</code> and <code>LIBGDAMM_LIBS</code> variables in the project <code>Makefile.am</code> files. For example: </p> <div class="fragment"><pre class="fragment"> program_CPPFLAGS = $(LIBGDAMM_CFLAGS) program_LDADD = $(LIBGDAMM_LIBS) </pre></div> </div></div> <hr class="footer"/><address class="footer"><small>Generated on Thu Sep 22 2011 11:20:02 for libgdamm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>