| From: | Jason Tishler <jason(at)tishler(dot)net> |
|---|---|
| To: | Nupur Pande <npande(at)vt(dot)edu> |
| Cc: | pgsql-cygwin(at)postgresql(dot)org |
| Subject: | Re: postgres.h |
| Date: | 2003-11-06 20:51:00 |
| Message-ID: | 20031106205100.GB648@tishler.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jason Tishler | 2003-11-06 20:53:20 | Re: shared memory |
| Previous Message | ADH | 2003-11-06 18:48:08 | initdb failing |