~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/html/install-windows-libpq.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Building libpq with
 
6
  Visual C++ or
 
7
  Borland C++</TITLE
 
8
><META
 
9
NAME="GENERATOR"
 
10
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
11
REV="MADE"
 
12
HREF="mailto:pgsql-docs@postgresql.org"><LINK
 
13
REL="HOME"
 
14
TITLE="PostgreSQL 9.1beta1 Documentation"
 
15
HREF="index.html"><LINK
 
16
REL="UP"
 
17
TITLE="Installation from Source Code on Windows"
 
18
HREF="install-windows.html"><LINK
 
19
REL="PREVIOUS"
 
20
TITLE="Building with Visual C++ or the
 
21
  Platform SDK"
 
22
HREF="install-windows-full.html"><LINK
 
23
REL="NEXT"
 
24
TITLE="Server Setup and Operation"
 
25
HREF="runtime.html"><LINK
 
26
REL="STYLESHEET"
 
27
TYPE="text/css"
 
28
HREF="stylesheet.css"><META
 
29
HTTP-EQUIV="Content-Type"
 
30
CONTENT="text/html; charset=ISO-8859-1"><META
 
31
NAME="creation"
 
32
CONTENT="2011-04-27T21:20:33"></HEAD
 
33
><BODY
 
34
CLASS="SECT1"
 
35
><DIV
 
36
CLASS="NAVHEADER"
 
37
><TABLE
 
38
SUMMARY="Header navigation table"
 
39
WIDTH="100%"
 
40
BORDER="0"
 
41
CELLPADDING="0"
 
42
CELLSPACING="0"
 
43
><TR
 
44
><TH
 
45
COLSPAN="5"
 
46
ALIGN="center"
 
47
VALIGN="bottom"
 
48
><A
 
49
HREF="index.html"
 
50
>PostgreSQL 9.1beta1 Documentation</A
 
51
></TH
 
52
></TR
 
53
><TR
 
54
><TD
 
55
WIDTH="10%"
 
56
ALIGN="left"
 
57
VALIGN="top"
 
58
><A
 
59
TITLE="Building with Visual C++ or the
 
60
  Platform SDK"
 
61
HREF="install-windows-full.html"
 
62
ACCESSKEY="P"
 
63
>Prev</A
 
64
></TD
 
65
><TD
 
66
WIDTH="10%"
 
67
ALIGN="left"
 
68
VALIGN="top"
 
69
><A
 
70
TITLE="Installation from Source Code on Windows"
 
71
HREF="install-windows.html"
 
72
>Fast Backward</A
 
73
></TD
 
74
><TD
 
75
WIDTH="60%"
 
76
ALIGN="center"
 
77
VALIGN="bottom"
 
78
>Chapter 16. Installation from Source Code on <SPAN
 
79
CLASS="PRODUCTNAME"
 
80
>Windows</SPAN
 
81
></TD
 
82
><TD
 
83
WIDTH="10%"
 
84
ALIGN="right"
 
85
VALIGN="top"
 
86
><A
 
87
TITLE="Installation from Source Code on Windows"
 
88
HREF="install-windows.html"
 
89
>Fast Forward</A
 
90
></TD
 
91
><TD
 
92
WIDTH="10%"
 
93
ALIGN="right"
 
94
VALIGN="top"
 
95
><A
 
96
TITLE="Server Setup and Operation"
 
97
HREF="runtime.html"
 
98
ACCESSKEY="N"
 
99
>Next</A
 
100
></TD
 
101
></TR
 
102
></TABLE
 
103
><HR
 
104
ALIGN="LEFT"
 
105
WIDTH="100%"></DIV
 
106
><DIV
 
107
CLASS="SECT1"
 
108
><H1
 
109
CLASS="SECT1"
 
110
><A
 
111
NAME="INSTALL-WINDOWS-LIBPQ"
 
112
>16.2. Building <SPAN
 
113
CLASS="APPLICATION"
 
114
>libpq</SPAN
 
115
> with
 
116
  <SPAN
 
117
CLASS="PRODUCTNAME"
 
118
>Visual C++</SPAN
 
119
> or
 
120
  <SPAN
 
121
CLASS="PRODUCTNAME"
 
122
>Borland C++</SPAN
 
123
></A
 
124
></H1
 
125
><P
 
126
>  Using <SPAN
 
127
CLASS="PRODUCTNAME"
 
128
>Visual C++ 7.1-9.0</SPAN
 
129
> or
 
130
  <SPAN
 
131
CLASS="PRODUCTNAME"
 
132
>Borland C++</SPAN
 
133
> to build libpq is only recommended
 
134
  if you need a version with different debug/release flags, or if you need a
 
135
  static library to link into an application. For normal use the
 
136
  <SPAN
 
137
CLASS="PRODUCTNAME"
 
138
>MinGW</SPAN
 
139
> or
 
140
  <SPAN
 
141
CLASS="PRODUCTNAME"
 
142
>Visual Studio</SPAN
 
143
> or
 
144
  <SPAN
 
145
CLASS="PRODUCTNAME"
 
146
>Platform SDK</SPAN
 
147
> method is recommended.
 
148
 </P
 
149
><P
 
150
>  To build the <SPAN
 
151
CLASS="APPLICATION"
 
152
>libpq</SPAN
 
153
> client library using
 
154
  <SPAN
 
155
CLASS="PRODUCTNAME"
 
156
>Visual Studio 7.1 or later</SPAN
 
157
>, change into the
 
158
  <TT
 
159
CLASS="FILENAME"
 
160
>src</TT
 
161
> directory and type the command:
 
162
</P><PRE
 
163
CLASS="SCREEN"
 
164
><KBD
 
165
CLASS="USERINPUT"
 
166
>nmake /f win32.mak</KBD
 
167
></PRE
 
168
><P>
 
169
 </P
 
170
><P
 
171
> To build a 64-bit version of the <SPAN
 
172
CLASS="APPLICATION"
 
173
>libpq</SPAN
 
174
>
 
175
 client library using <SPAN
 
176
CLASS="PRODUCTNAME"
 
177
>Visual Studio 8.0 or
 
178
 later</SPAN
 
179
>, change into the <TT
 
180
CLASS="FILENAME"
 
181
>src</TT
 
182
>
 
183
 directory and type in the command:
 
184
</P><PRE
 
185
CLASS="SCREEN"
 
186
><KBD
 
187
CLASS="USERINPUT"
 
188
>nmake /f win32.mak CPU=AMD64</KBD
 
189
></PRE
 
190
><P>
 
191
 See the <TT
 
192
CLASS="FILENAME"
 
193
>win32.mak</TT
 
194
> file for further details
 
195
 about supported variables.
 
196
 </P
 
197
><P
 
198
>  To build the <SPAN
 
199
CLASS="APPLICATION"
 
200
>libpq</SPAN
 
201
> client library using
 
202
  <SPAN
 
203
CLASS="PRODUCTNAME"
 
204
>Borland C++</SPAN
 
205
>, change into the
 
206
  <TT
 
207
CLASS="FILENAME"
 
208
>src</TT
 
209
> directory and type the command:
 
210
</P><PRE
 
211
CLASS="SCREEN"
 
212
><KBD
 
213
CLASS="USERINPUT"
 
214
>make -N -DCFG=Release /f bcc32.mak</KBD
 
215
></PRE
 
216
><P>
 
217
 </P
 
218
><DIV
 
219
CLASS="SECT2"
 
220
><H2
 
221
CLASS="SECT2"
 
222
><A
 
223
NAME="AEN24913"
 
224
>16.2.1. Generated Files</A
 
225
></H2
 
226
><P
 
227
>  The following files will be built:
 
228
 
 
229
  <P
 
230
></P
 
231
></P><DIV
 
232
CLASS="VARIABLELIST"
 
233
><DL
 
234
><DT
 
235
><TT
 
236
CLASS="FILENAME"
 
237
>interfaces\libpq\Release\libpq.dll</TT
 
238
></DT
 
239
><DD
 
240
><P
 
241
>      The dynamically linkable frontend library
 
242
     </P
 
243
></DD
 
244
><DT
 
245
><TT
 
246
CLASS="FILENAME"
 
247
>interfaces\libpq\Release\libpqdll.lib</TT
 
248
></DT
 
249
><DD
 
250
><P
 
251
>      Import library to link your programs to <TT
 
252
CLASS="FILENAME"
 
253
>libpq.dll</TT
 
254
>
 
255
     </P
 
256
></DD
 
257
><DT
 
258
><TT
 
259
CLASS="FILENAME"
 
260
>interfaces\libpq\Release\libpq.lib</TT
 
261
></DT
 
262
><DD
 
263
><P
 
264
>      Static version of the frontend library
 
265
     </P
 
266
></DD
 
267
></DL
 
268
></DIV
 
269
><P>
 
270
 </P
 
271
><P
 
272
>  Normally you do not need to install any of the client files. You should
 
273
  place the <TT
 
274
CLASS="FILENAME"
 
275
>libpq.dll</TT
 
276
> file in the same directory
 
277
  as your applications executable file. Do not install
 
278
  <TT
 
279
CLASS="FILENAME"
 
280
>libpq.dll</TT
 
281
> into your <TT
 
282
CLASS="FILENAME"
 
283
>Windows</TT
 
284
>,
 
285
  <TT
 
286
CLASS="FILENAME"
 
287
>System</TT
 
288
> or <TT
 
289
CLASS="FILENAME"
 
290
>System32</TT
 
291
> directory unless
 
292
  absolutely necessary.
 
293
  If this file is installed using a setup program, then it should
 
294
  be installed with version checking using the
 
295
  <TT
 
296
CLASS="SYMBOL"
 
297
>VERSIONINFO</TT
 
298
> resource included in the file, to
 
299
  ensure that a newer version of the library is not overwritten.
 
300
 </P
 
301
><P
 
302
>  If you are planning to do development using <SPAN
 
303
CLASS="APPLICATION"
 
304
>libpq</SPAN
 
305
>
 
306
  on this machine, you will have to add the
 
307
  <TT
 
308
CLASS="FILENAME"
 
309
>src\include</TT
 
310
> and
 
311
  <TT
 
312
CLASS="FILENAME"
 
313
>src\interfaces\libpq</TT
 
314
> subdirectories of the source
 
315
  tree to the include path in your compiler's settings.
 
316
 </P
 
317
><P
 
318
>  To use the library, you must add the
 
319
  <TT
 
320
CLASS="FILENAME"
 
321
>libpqdll.lib</TT
 
322
> file to your project.  (In Visual
 
323
  C++, just right-click on the project and choose to add it.)
 
324
 </P
 
325
></DIV
 
326
></DIV
 
327
><DIV
 
328
CLASS="NAVFOOTER"
 
329
><HR
 
330
ALIGN="LEFT"
 
331
WIDTH="100%"><TABLE
 
332
SUMMARY="Footer navigation table"
 
333
WIDTH="100%"
 
334
BORDER="0"
 
335
CELLPADDING="0"
 
336
CELLSPACING="0"
 
337
><TR
 
338
><TD
 
339
WIDTH="33%"
 
340
ALIGN="left"
 
341
VALIGN="top"
 
342
><A
 
343
HREF="install-windows-full.html"
 
344
ACCESSKEY="P"
 
345
>Prev</A
 
346
></TD
 
347
><TD
 
348
WIDTH="34%"
 
349
ALIGN="center"
 
350
VALIGN="top"
 
351
><A
 
352
HREF="index.html"
 
353
ACCESSKEY="H"
 
354
>Home</A
 
355
></TD
 
356
><TD
 
357
WIDTH="33%"
 
358
ALIGN="right"
 
359
VALIGN="top"
 
360
><A
 
361
HREF="runtime.html"
 
362
ACCESSKEY="N"
 
363
>Next</A
 
364
></TD
 
365
></TR
 
366
><TR
 
367
><TD
 
368
WIDTH="33%"
 
369
ALIGN="left"
 
370
VALIGN="top"
 
371
>Building with <SPAN
 
372
CLASS="PRODUCTNAME"
 
373
>Visual C++</SPAN
 
374
> or the
 
375
  <SPAN
 
376
CLASS="PRODUCTNAME"
 
377
>Platform SDK</SPAN
 
378
></TD
 
379
><TD
 
380
WIDTH="34%"
 
381
ALIGN="center"
 
382
VALIGN="top"
 
383
><A
 
384
HREF="install-windows.html"
 
385
ACCESSKEY="U"
 
386
>Up</A
 
387
></TD
 
388
><TD
 
389
WIDTH="33%"
 
390
ALIGN="right"
 
391
VALIGN="top"
 
392
>Server Setup and Operation</TD
 
393
></TR
 
394
></TABLE
 
395
></DIV
 
396
></BODY
 
397
></HTML
 
398
>
 
 
b'\\ No newline at end of file'