Re: [COMMITTERS] How I can add new function writing on C under Win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: deeps1 <deeps(at)cg(dot)ukrtel(dot)net>
Cc: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [COMMITTERS] How I can add new function writing on C under Win32
Date: 2005-02-08 15:41:18
Message-ID: 200502081541.j18FfIt29999@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-general

deeps1 wrote:
> Hello pgsql-committers,
>
>
>
> How I can compiling and linking Dynamically-Loaded Functions on Win32?
>
> In Docs describe all platforms BSD , FreeBSD,
>
>
> Linux for example
> The compiler flag to create PIC is -fpic. On some platforms in some situations -fPIC must be used if -fpic does not work. Refer to the GCC manual for more information. The compiler flag to create a shared library is -shared. A complete example looks like this:
>
> cc -fpic -c foo.c
> cc -shared -o foo.so foo.o
>
> but no describe under Win32 for Postges 8.0.1 under Win32

[ Moved to 'general'.]

Take a look at how the regression tests link regress.so using the MinGW
tools and that will show the flags to use.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-02-08 18:22:00 pgsql: If we're gonna check for array overrun, we really should do so
Previous Message Bruce Momjian 2005-02-08 03:24:35 pgsql: Spacing: < * Allow the PITR process to be debugged and data

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2005-02-08 15:57:20 Re: Creating an index-type for LIKE '%value%'
Previous Message Berend Tober 2005-02-08 15:30:37 Re: create aggregates to concatenate