Re: [pgsql-patches] [PATCHES] Building libpq/psql with Borland BCC5 - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: [pgsql-patches] [PATCHES] Building libpq/psql with Borland BCC5
Date
Msg-id b42b73150701101217t79342b61l7038a2c2352ecac3@mail.gmail.com
Whole thread Raw
In response to Re: [PATCHES] Building libpq/psql with Borland BCC5  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On 1/10/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:

> What about a Mingw or VC++ psql with a BCC libpq?  Is it possible to
> link something like that?
>
> It would be nice to have the libpq at least able to pass the regression
> tests.

you can use microsoft/mingw compiled DLL files but not library files.
however, borland provides a command line tool (implib i thnk) to
create an import library for it which works ok. (i think you have to
pass a switch to fix underscore issue).

libpq.lib is not directly usable (coff vs. omf) but digital mars makes
a tool which can do this and I have confirmed it works.

note: I've used borland compiled libpq (not psql) with borland C++
builder 3 & 5 with no problems. I had to hack pg_config.h however.

merlin

pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: installcheck vs regression DLLs
Next
From: Tom Lane
Date:
Subject: Re: installcheck vs regression DLLs