From: | "Nupur Pande" <npande(at)vt(dot)edu> |
---|---|
To: | "Jason Tishler" <jason(at)tishler(dot)net> |
Cc: | <pgsql-cygwin(at)postgresql(dot)org> |
Subject: | Re: postgres.h |
Date: | 2003-11-06 16:37:23 |
Message-ID: | 014f01c3a484$4208b0d0$6500a8c0@RANIKHET |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin |
I did exactly that, but it still doesn't work. I don't think -lpostgres is
not working even though my /usr/lib contains libpostgres.a now. I have also
changed libpostgres.a's permission to reflect those of other .a files. The
only difference is the + at the end of the permissions of libpostgres.a
which I'm not sure how to change..
$ ls -Al /usr/lib/libp*
-rwxr-xr-- 1 Nupur Users 2445312 Nov 6 00:06
/usr/lib/libpostgres.a
-rwxr-x---+ 1 Nupur Users 111176 Aug 5 09:31 /usr/lib/libpq.a
-rwxr-x---+ 1 Nupur Users 56086 Sep 20 16:32
/usr/lib/libpthread.a
My makefile looks like this:
RuleFinder.so: RuleFinder.o
gcc -shared -lpostgres -L /usr/lib -o RuleFinder.so RuleFinder.o
RuleFinder.o: <files>
gcc -I /usr/include/postgresql/server -c RuleFinder.c
Thanks for the help!
Nupur
----- Original Message -----
From: "Jason Tishler" <jason(at)tishler(dot)net>
To: "Nupur Pande" <npande(at)vt(dot)edu>
Cc: <pgsql-cygwin(at)postgresql(dot)org>
Sent: Wednesday, November 05, 2003 10:24 PM
Subject: Re: [CYGWIN] postgres.h
> Nupur,
>
> On Wed, Nov 05, 2003 at 05:12:04PM -0500, Nupur Pande wrote:
> > Could you please give me precise directions?
>
> Use the following (after installing all necessary Cygwin packages):
>
> $ wget -P /tmp
http://mirrors.rcn.net/pub/sourceware/cygwin/release/postgresql/postgresql-7.3.4-2-src.tar.bz2
> $ tar -xjf /tmp/postgresql-7.3.4-2-src.tar.bz2
> $ cd postgresql-7.3.4-2
> $ configure --enable-multibyte --prefix=/usr
> $ make
> $ cp src/backend/libpostgres.a /usr/lib
>
> Now you can just add -lpostgres to your link command line.
>
> Jason
From | Date | Subject | |
---|---|---|---|
Next Message | Muhyiddin A.M Hayat | 2003-11-06 17:38:11 | Re: shared memory |
Previous Message | Jason Tishler | 2003-11-06 03:24:15 | Re: postgres.h |