9.1
Table Of Contents
Procedure
u
Relink with vPostgres based on your operating system.
Operating System Relinking Process
Linux
a See /opt/vmware/vpostgres/1.0/share/libpq-
doc/README.vpostgres-libpq.
b Override the dynamic library search path by
adding /opt/vmware/vpostgres/current/lib-public to
LD_LIBRARY_PATH.
# export LD_LIBRARY_PATH=/opt/vmware/vpostgres/
1.0/lib-public
# mypgapp
- or -
c Relink using the vPostgres libpq.
# gcc -o t t.c -L/opt/vmware/vpostgres/current
/lib -Wl,'-rpath=/opt/vmware/vpostgres/current/lib' -lpq
Windows
Copy the libpq and other libraries into the directory of the application
binaries and relink.
By default , the libraries and header files are in the following locations.
Development
libraries
C:\Program Files\VMware\vPostgres\9.1\dev
libpgport.lib and
libpq.lib libraries
C:\Program
Files\VMware\vPostgres\9.1\dev\lib
libpq header
files
C:\Program
Files\VMware\vPostgres\9.1\dev\include
Chapter 3 vPostgres Client Tools and Libraries
VMware, Inc. 19