Thread: Location of client header files

Location of client header files

From
"Timothy H. Keitt"
Date:
I need to compile a complete list of different locations to find 
"libpq-fe.h" in various PostgreSQL distributions so that I can 
automatically add the correct path when compiling a client application.  
Please post the location "libpq-fe.h" for your distribution and I will 
compile a list and post it back to pgsql-hackers.

Thanks.
Tim

-- 
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/



Re: Location of client header files

From
Peter Eisentraut
Date:
Timothy H. Keitt writes:

> I need to compile a complete list of different locations to find 
> "libpq-fe.h" in various PostgreSQL distributions so that I can 
> automatically add the correct path when compiling a client application.  
> Please post the location "libpq-fe.h" for your distribution and I will 
> compile a list and post it back to pgsql-hackers.

Besides the default /usr/local/pgsql/include, good candidates are
/usr/include/pgsql (RPMs) and /usr/include/postgresql (Debian?).  Future
versions will provide a program 'pg_config' in the style of gtk-config
that will print the actual installation directory.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/