Imported Upstream version 2.91.2
[platform/upstream/libxml++.git] / docs / manual / html / ch01s03.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Compilation and Linking</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
6 <link rel="home" href="index.html" title="libxml++ - An XML Parser for C++">
7 <link rel="up" href="chapter-introduction.html" title="Chapter 1. libxml++">
8 <link rel="prev" href="ch01s02.html" title="UTF-8 and Glib::ustring">
9 <link rel="next" href="chapter-parsers.html" title="Chapter 2. Parsers">
10 </head>
11 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12 <div class="navheader">
13 <table width="100%" summary="Navigation header">
14 <tr><th colspan="3" align="center">Compilation and Linking</th></tr>
15 <tr>
16 <td width="20%" align="left">
17 <a accesskey="p" href="ch01s02.html">Prev</a> </td>
18 <th width="60%" align="center">Chapter 1. libxml++</th>
19 <td width="20%" align="right"> <a accesskey="n" href="chapter-parsers.html">Next</a>
20 </td>
21 </tr>
22 </table>
23 <hr>
24 </div>
25 <div class="sect1">
26 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
27 <a name="idp89425040"></a>Compilation and Linking</h2></div></div></div>
28 <p>To use libxml++ in your application, you must tell the compiler where to find the include headers and where to find the libxml++ library. libxml++ provides a pkg-config .pc file to make this easy. For instance, the following command will provide the necessary compiler options:
29     <span class="command"><strong>pkg-config libxml++-3.0 --cflags --libs</strong></span>
30     </p>
31 <p>When using autoconf and automake, this is even easier with the PKG_CHECK_MODULES macro in your configure.ac file. For instance:
32     </p>
33 <pre class="programlisting">
34     PKG_CHECK_MODULES(SOMEAPP, libxml++-3.0 &gt;= 3.0.0)
35     AC_SUBST(SOMEAPP_CFLAGS)
36     AC_SUBST(SOMEAPP_LIBS)
37     </pre>
38 <p>
39     </p>
40 </div>
41 <div class="navfooter">
42 <hr>
43 <table width="100%" summary="Navigation footer">
44 <tr>
45 <td width="40%" align="left">
46 <a accesskey="p" href="ch01s02.html">Prev</a> </td>
47 <td width="20%" align="center"><a accesskey="u" href="chapter-introduction.html">Up</a></td>
48 <td width="40%" align="right"> <a accesskey="n" href="chapter-parsers.html">Next</a>
49 </td>
50 </tr>
51 <tr>
52 <td width="40%" align="left" valign="top">UTF-8 and Glib::ustring </td>
53 <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
54 <td width="40%" align="right" valign="top"> Chapter 2. Parsers</td>
55 </tr>
56 </table>
57 </div>
58 </body>
59 </html>