Re: Custom types for a Windows server

From: Armel HERVE <ah(dot)pgsql(at)laposte(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Custom types for a Windows server
Date: 2005-12-21 09:34:57
Message-ID: 43A921C1.4050600@laposte.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andrea 2005-12-21 09:54:44 Re: PostgreSQL 7.4.10 hanging on delete
Previous Message Pandurangan R S 2005-12-21 08:02:41 Re: PostgreSQL 7.4.10 hanging on delete