Re: Query on support for trigger functions defined in a Shared library in Windows - Mailing list pgsql-hackers-win32

From Magnus Hagander
Subject Re: Query on support for trigger functions defined in a Shared library in Windows
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C77CB@algol.sollentuna.se
Whole thread Raw
In response to Query on support for trigger functions defined in a Shared library in Windows  (Mehul Doshi-A20614 <mehul@motorola.com>)
List pgsql-hackers-win32
> Hi Magnus,
>
> Thanks. Here's what I did:
> 1. Downloaded the 8.0 source code.
> 2. Created a test directory in postgresql-8.0.0\src\ 3. Wrote
> a  sample c snippet as given below:
> 4. Compiled using gcc (version 3.4.4) in cygwin 5. Used the
> following make file to generate the dll.

You cannot use cygwin GCC to build extensions to the win32 version of
postgresql. Only for the cygwin version (I would assume that works, I
haven't tested it. I know it doesn't work for the win32 version). You
will need to use the MingW build system to build your DLLs.

(BTW, yuo really want 8.0.3 and not 8.0.0 for your systems. No changes
in the build system stuff, but several other fixes you definitly want)

//Magnus

pgsql-hackers-win32 by date:

Previous
From: Mehul Doshi-A20614
Date:
Subject: Re: Query on support for trigger functions
Next
From: "Magnus Hagander"
Date:
Subject: Re: libpq request results