select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 7.0 / 6.5
Historical version. PostgreSQL 6.5 reached end of support in June 2004. See the current manual for supported releases.

Chapter 20. Installation on Win32

Build and installation instructions for Postgres v6.4 client libraries on Win32.

Building the libraries

The makefiles included in Postgres are written for Microsoft Visual C++, and will probably not work with other systems. It should be possible to compile the libaries manually in other cases.

To build the libraries, change directory into the src directory, and type the command

nmake /f win32.mak
This assumes that you have Visual C++ in your path.

The following files will be built:

  • interfaces\libpq\Release\libpq.dll - The dynamically linkable frontend library

  • interfaces\libpq\Release\libpqdll.lib - Import library to link your program to libpq.dll

  • interfaces\libpq\Release\libpq.lib - Static library version of the frontend library

  • bin\psql\Release\psql.exe - The Postgresql interactive SQL monitor

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.