07d32ca75de723f6ed7f384ea491b475b64ca1c2
[profile/ivi/glib2.git] / docs / reference / gio / html / ch02.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Compiling GIO applications</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GIO Reference Manual">
8 <link rel="up" href="pt01.html" title="Part I. GIO Overview">
9 <link rel="prev" href="ch01.html" title="Introduction">
10 <link rel="next" href="ch03.html" title="Running GIO applications">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="pt01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">GIO Reference Manual</th>
20 <td><a accesskey="n" href="ch03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr></table>
22 <div class="chapter">
23 <div class="titlepage"><div><div><h2 class="title">
24 <a name="idp5860688"></a>Compiling GIO applications</h2></div></div></div>
25 <p>
26       GIO comes with a <code class="filename">gio-2.0.pc</code> file that you
27       should use together with <code class="literal">pkg-config</code> to obtain
28       the necessary information about header files and libraries. See
29       the <code class="literal">pkg-config</code> man page or the GLib documentation
30       for more information on how to use <code class="literal">pkg-config</code>
31       to compile your application.
32     </p>
33 <p>
34       If you are using GIO on UNIX-like systems, you may want to use
35       UNIX-specific GIO interfaces such as <a class="link" href="GUnixInputStream.html" title="GUnixInputStream"><span class="type">GUnixInputStream</span></a>,
36       <a class="link" href="GUnixOutputStream.html" title="GUnixOutputStream"><span class="type">GUnixOutputStream</span></a>, <span class="type">GUnixMount</span> or <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>.
37       To do so, use the <code class="filename">gio-unix-2.0.pc</code> file
38       instead of <code class="filename">gio-2.0.pc</code>
39     </p>
40 <p>
41       Since GIO is based on GObject, you need to call <a href="./../gobject/gobject/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a>
42       before you can use any GIO functions. If your application uses
43       GTK+, this is already taken care of by <a href="http://developer.gnome.org/devel/gtk/gtk3-General.html#gtk-init"><code class="function">gtk_init()</code></a>.
44     </p>
45 </div>
46 <div class="footer">
47 <hr>
48           Generated by GTK-Doc V1.18</div>
49 </body>
50 </html>