From: | Shane Ambler <pgsql(at)Sheeky(dot)Biz> |
---|---|
To: | emoazzam(at)yahoo(dot)com, PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Interface to posgresql |
Date: | 2007-03-04 10:47:15 |
Message-ID: | 45EAA3B3.5080701@Sheeky.Biz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
emoazzam(at)yahoo(dot)com 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(at)Sheeky(dot)Biz
>>
>> 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(at)Sheeky(dot)Biz
Get Sheeky @ http://Sheeky.Biz
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2007-03-04 12:44:37 | Re: Can I getting a unique ID from a select |
Previous Message | Flemming Frandsen | 2007-03-04 10:35:08 | Re: Support for idempotent schema changes? |