Re: postgres.h - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: postgres.h
Date
Msg-id 20031106205100.GB648@tishler.net
Whole thread Raw
In response to Re: postgres.h  ("Nupur Pande" <npande@vt.edu>)
List pgsql-cygwin
Nupur,

On Thu, Nov 06, 2003 at 11:37:23AM -0500, Nupur Pande wrote:
> My makefile looks like this:
>
> RuleFinder.so: RuleFinder.o
>     gcc -shared -lpostgres -L /usr/lib -o RuleFinder.so RuleFinder.o

Under Cygwin, the order of link command line arguments is important.
Does the following work?

    gcc -shared -o RuleFinder.dll RuleFinder.o -lpostgres -L/usr/lib

Note you should use ".dll" not ".so" under Cygwin (i.e., Windows).

> Thanks for the help!

You are welcome, but next please include error messages.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

pgsql-cygwin by date:

Previous
From: "ADH"
Date:
Subject: initdb failing
Next
From: Jason Tishler
Date:
Subject: Re: shared memory