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: 43A921C1.4050600@laposte.net (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group