历史版本。 PostgreSQL 7.0 已结束支持。 请参阅 当前版本手册.
第 26 章 在 Win32 上安装
摘要
在 Win32 上构建和安装 Postgres v6.4 客户端库的说明。
26.1. 构建这些库
Postgres 中包含的 makefile 是为 Microsoft Visual C++ 编写的,可能在其他系统上不能用。在其他情况下应当可以手动编译这些库。
要构建这些库,进入 src
目录,输入命令
copy include\config.h.win32 include\config.h
nmake /f win32.mak
这假设你的路径中有 Visual C++。
将构建出下列文件:
interfaces\libpq\Release\libpq.dll- 可动态链接的前端库interfaces\libpq\Release\libpqdll.lib- 把你的程序链接到 libpq.dll 的导入库interfaces\libpq\Release\libpq.lib- 前端库的静态库版本bin\psql\Release\psql.exe- Postgresql 交互式 SQL 监视程序