Search Postgresql Archives

Re: Interface to posgresql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



emoazzam@xxxxxxxxx wrote:
Thanks Shane, I appreciate your help.
I have installed postgresql on windows and there is no /urs/lib and
> /urs/include folder in this installation. Can you please tell me
> why is that and what is the difference in the windwos and
> linux intallations

With windows the include files and libraries are an optional extra.

I think the older installer was setup a bit different - you may need to select custom install. When you get to install options you will find Development at the bottom of the list, here you can select to have the include files and libraries installed.

You will find them in the same folder as the other files installed.
This is in normally C:\Program Files\PostgreSQL\8.x



Regards
MAK
Shane Ambler-4 wrote:
makhan wrote:
Hi

I am trying to connect to the postgresql and make quries usuing my
application in c language using the libpq library.can you please tell me
how
to setup the enviromnet and where to place files so that I can run
examples
given on the libpq site.( if I use gcc compiler on linux or borland turbo
c)

Regards
The standard placing for the files is /usr/lib for libpq and /usr/include for the header files.

These paths should be standard search paths for gcc

I believe the linux installs have these files as part of the devel install - the postgresql-devel-xxx rpm - you will need to install that.

If you have done a manual setup and build from source then /usr would be replaced with the prefix path used (./configure --prefix=...)
eg. /usr/local/pgsql/lib is a common one.

For gcc HEADER_SEARCH_PATHS is used for headers and LIBRARY_SEARCH_PATHS for libs. Or -I can be used as an option to gcc and -L with ld when linking. eg gcc -I /usr/local/pgsql/include myprog.c

--

Shane Ambler
pgSQL@xxxxxxxxxx

Get Sheeky @ http://Sheeky.Biz

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org/


Quoted from: http://www.nabble.com/-GENERAL--libpq%2B%2B-installation-error-tf771167.html#a9284057




--

Shane Ambler
pgSQL@xxxxxxxxxx

Get Sheeky @ http://Sheeky.Biz


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux