From: Armel HERVE <ah.pgsql@laposte.net>
To: pgsql-admin@postgresql.org
Subject: Re: Custom types for a Windows server
Date: Wed, 21 Dec 2005 10:34:57 +0100
Message-ID: <43A921C1.4050600@laposte.net> (raw)
Magnus Hagander wrote:
>> we made some custom types (written in C) for PostgreSQL onto
>> a Linux server.
>> We need to deploy a Windows server...
>>
>> The documentation does not talk about a shared library for Windows
>> (http://www.postgresql.org/docs/8.1/interactive/xfunc-c.html#DFUNC)
>> I tried to compile its custom types with borland bcc32, with
>> no success:
>>
>> Does somebody can help me ?
>>
>>
>
> You need to compile the functions using MingW GCC.
>
> //Magnus
>
>
Thanks again for your answers.
Now, when I try to generate the shared library by the following command:
gcc -shared -o pstypes.dll -Wl,-dy,--library-path,/c/Program\
Files/PostgreSQL/8.1/lib/,-l,libpq.a,--out-implib,pstypes.a country.o
the compiler response is:
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot find -llibpq.a
collect2: ld returned 1 exit status
but the libpq.a is in the lib repository of PostgresSQL...
I tried to link with the libpq.dll located in the bin repository, the
response is the same: cannot find -llibpq.dll
Armel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ah.pgsql@laposte.net
Subject: Re: Custom types for a Windows server
In-Reply-To: <43A921C1.4050600@laposte.net>
References: <43A921C1.4050600@laposte.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox