~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/faq/html/x399.html

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-12-23 03:09:40 UTC
  • mfrom: (1.13.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101223030940-ctsv8mereipe1e2p
Tags: 2.23.3-1
* New upstream release.
  + debian/control.in:
    - Bump the libglib2.0-dev build requirement.
  + debian/patches/070_mandatory-relibtoolize.patch:
    - Refreshed.
  + debian/libgtk2.0-0.symbols:
    - Updated for the new symbols.
  + debian/rules:
    - Bump the shver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>I tried to compile a small Hello World of mine,
 
6
but it failed. Any clue? [GTK 2.x]</TITLE
 
7
><META
 
8
NAME="GENERATOR"
 
9
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
10
REL="HOME"
 
11
TITLE="GTK+ FAQ"
 
12
HREF="book1.html"><LINK
 
13
REL="UP"
 
14
TITLE="Development with GTK+: the begining"
 
15
HREF="c377.html"><LINK
 
16
REL="PREVIOUS"
 
17
TITLE="How do I write security sensitive/SUID/SGID programs with GTK+?
 
18
Is GTK+ secure? What's this GTK_MODULES security hole I heard about?
 
19
[GTK 2.x]"
 
20
HREF="x392.html"><LINK
 
21
REL="NEXT"
 
22
TITLE="What about using the make
 
23
utility? [GTK 2.x]"
 
24
HREF="x416.html"></HEAD
 
25
><BODY
 
26
CLASS="SECT1"
 
27
BGCOLOR="#FFFFFF"
 
28
TEXT="#000000"
 
29
LINK="#0000FF"
 
30
VLINK="#840084"
 
31
ALINK="#0000FF"
 
32
><DIV
 
33
CLASS="NAVHEADER"
 
34
><TABLE
 
35
SUMMARY="Header navigation table"
 
36
WIDTH="100%"
 
37
BORDER="0"
 
38
CELLPADDING="0"
 
39
CELLSPACING="0"
 
40
><TR
 
41
><TH
 
42
COLSPAN="3"
 
43
ALIGN="center"
 
44
>GTK+ FAQ</TH
 
45
></TR
 
46
><TR
 
47
><TD
 
48
WIDTH="10%"
 
49
ALIGN="left"
 
50
VALIGN="bottom"
 
51
><A
 
52
HREF="x392.html"
 
53
ACCESSKEY="P"
 
54
>&#60;&#60;&#60; Previous</A
 
55
></TD
 
56
><TD
 
57
WIDTH="80%"
 
58
ALIGN="center"
 
59
VALIGN="bottom"
 
60
>Development with GTK+: the begining</TD
 
61
><TD
 
62
WIDTH="10%"
 
63
ALIGN="right"
 
64
VALIGN="bottom"
 
65
><A
 
66
HREF="x416.html"
 
67
ACCESSKEY="N"
 
68
>Next &#62;&#62;&#62;</A
 
69
></TD
 
70
></TR
 
71
></TABLE
 
72
><HR
 
73
ALIGN="LEFT"
 
74
WIDTH="100%"></DIV
 
75
><DIV
 
76
CLASS="SECT1"
 
77
><H1
 
78
CLASS="SECT1"
 
79
><A
 
80
NAME="AEN399"
 
81
>I tried to compile a small <B
 
82
CLASS="COMMAND"
 
83
>Hello World</B
 
84
> of mine,
 
85
but it failed. Any clue? <I
 
86
CLASS="EMPHASIS"
 
87
>[GTK 2.x]</I
 
88
></A
 
89
></H1
 
90
><P
 
91
>Since you are good at coding, we will not deal with
 
92
compile time errors here :)</P
 
93
><P
 
94
>The classic command line to compile a GTK+ based program is</P
 
95
><P
 
96
><P
 
97
CLASS="LITERALLAYOUT"
 
98
><TT
 
99
CLASS="LITERAL"
 
100
>gcc -o myprog [c files] `pkg-config gtk+-2.0 --cflags --libs`</TT
 
101
></P
 
102
></P
 
103
><P
 
104
>You should notice the backquote character which is used
 
105
in this command line. A common mistake when you start a GTK+
 
106
based development is to use quotes instead of backquotes. If
 
107
you do so, the compiler will complain about an unknown file
 
108
called <TT
 
109
CLASS="FILENAME"
 
110
>pkg-config gtk+-2.0 --cflags --libs</TT
 
111
>. The
 
112
text in backquotes is an instruction to your shell to
 
113
substitute the output of executing this command into the
 
114
commandline.</P
 
115
><P
 
116
>The command line above ensures that:</P
 
117
><P
 
118
></P
 
119
><UL
 
120
><LI
 
121
><P
 
122
>the correct C compiler flags will be used
 
123
to compile the program (including the complete C header
 
124
directory list)</P
 
125
></LI
 
126
><LI
 
127
><P
 
128
>your program will be linked with the
 
129
needed libraries.</P
 
130
></LI
 
131
></UL
 
132
></DIV
 
133
><DIV
 
134
CLASS="NAVFOOTER"
 
135
><HR
 
136
ALIGN="LEFT"
 
137
WIDTH="100%"><TABLE
 
138
SUMMARY="Footer navigation table"
 
139
WIDTH="100%"
 
140
BORDER="0"
 
141
CELLPADDING="0"
 
142
CELLSPACING="0"
 
143
><TR
 
144
><TD
 
145
WIDTH="33%"
 
146
ALIGN="left"
 
147
VALIGN="top"
 
148
><A
 
149
HREF="x392.html"
 
150
ACCESSKEY="P"
 
151
>&#60;&#60;&#60; Previous</A
 
152
></TD
 
153
><TD
 
154
WIDTH="34%"
 
155
ALIGN="center"
 
156
VALIGN="top"
 
157
><A
 
158
HREF="book1.html"
 
159
ACCESSKEY="H"
 
160
>Home</A
 
161
></TD
 
162
><TD
 
163
WIDTH="33%"
 
164
ALIGN="right"
 
165
VALIGN="top"
 
166
><A
 
167
HREF="x416.html"
 
168
ACCESSKEY="N"
 
169
>Next &#62;&#62;&#62;</A
 
170
></TD
 
171
></TR
 
172
><TR
 
173
><TD
 
174
WIDTH="33%"
 
175
ALIGN="left"
 
176
VALIGN="top"
 
177
>How do I write security sensitive/SUID/SGID programs with GTK+?
 
178
Is GTK+ secure? What's this GTK_MODULES security hole I heard about?
 
179
<I
 
180
CLASS="EMPHASIS"
 
181
>[GTK 2.x]</I
 
182
></TD
 
183
><TD
 
184
WIDTH="34%"
 
185
ALIGN="center"
 
186
VALIGN="top"
 
187
><A
 
188
HREF="c377.html"
 
189
ACCESSKEY="U"
 
190
>Up</A
 
191
></TD
 
192
><TD
 
193
WIDTH="33%"
 
194
ALIGN="right"
 
195
VALIGN="top"
 
196
>What about using the <B
 
197
CLASS="COMMAND"
 
198
>make</B
 
199
>
 
200
utility? <I
 
201
CLASS="EMPHASIS"
 
202
>[GTK 2.x]</I
 
203
></TD
 
204
></TR
 
205
></TABLE
 
206
></DIV
 
207
></BODY
 
208
></HTML
 
209
>
 
 
b'\\ No newline at end of file'