Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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
>> (
>> 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:
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



pgsql-admin by date

Next:From: AndreaDate: 2005-12-21 09:54:44
Subject: Re: PostgreSQL 7.4.10 hanging on delete
Previous:From: Pandurangan R SDate: 2005-12-21 08:02:41
Subject: Re: PostgreSQL 7.4.10 hanging on delete

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group