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

RE: Building psql.exe, libpq.dll & libpq.lib (7.1Bet a3)

From: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
To: "'Magnus Hagander'" <mha(at)sollentuna(dot)net>, "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: Building psql.exe, libpq.dll & libpq.lib (7.1Bet a3)
Date: 2001-01-22 14:02:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

> -----Original Message-----
> From: Magnus Hagander [mailto:mha(at)sollentuna(dot)net]
> Sent: 22 January 2001 12:33
> To: 'Dave Page'; 'pgsql-interfaces(at)postgresql(dot)org'
> Subject: RE: [INTERFACES] Building psql.exe, libpq.dll & libpq.lib
> (7.1Bet a3)
> > > Please try it with the patch that I just posted to the 
> > > hackers list. Note
> > > that the problem with psql.exe is not fixed yet, though.
> > > 
> > 
> > Thanks, I'll try it. The problem you mention with psql - is 
> > that where it
> > crashes when it redisplays the prompt after a query or <cr>? 
> Yup, that's the one. Andreas Zeugswetter had an idea to fix 
> that one as well
> by adding "/MD" to the linker flags. Haven't tried it yet, though.
> //Magnus

Both problems solved! I did have to tweek a couple of things though:

fnctl.h seems to be called fcntl.h on my Visual Studio installation (I
assume they're the same file - it didn't complain after I copied one to the

The VC compiler didn't like the use of PG_VERSION in lines 607 & 629 in
src/bin/psql/startup.c - a quick hardcode of the version number cured this.

And, yes I know both of those fixes are a million miles from fixing it
properly but I'm only toying with an idea here!

BTW: I'm working with beta3 not the snapshot that I assume you are using.

Thanks, Dave.

pgsql-interfaces by date

Next:From: Nicholas ChanDate: 2001-01-22 14:26:17
Subject: Re: extremely newbie questions
Previous:From: Dave PageDate: 2001-01-22 12:46:51
Subject: RE: Building psql.exe, libpq.dll & libpq.lib (7.1Bet a3)

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