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

Re: (postgres) Libpq Win32

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: mha(at)edu(dot)sollentuna(dot)se (Magnus Hagander)
Cc: hackers(at)postgreSQL(dot)org (PostgreSQL-development)
Subject: Re: (postgres) Libpq Win32
Date: 1998-07-03 04:30:25
Message-ID: 199807030430.AAA18443@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
> Hello!
> 
> Through some minor changes, I have been able to compile the libpq client
> libraries on the Win32 platform. Since the libpq communications part has
> been rewritten, this has become much easier. Enclosed is a patch that
> will allow at least Microsoft Visual C++ to compile libpq into both a
> static and a dynamic library.
> I will take a look at porting the psql frontend as well, but I figured
> it was a good idea to send in these patches first - so no major changes
> are done to the files before it gets applied (if it does).
> 
> The patches patch clean against the snapshot from Jun 20 (I don't have
> cvs, so I got it from the ftp site). It modifies only the
> interfaces/libpq/* files and the include/postgres.h file.
> It also creates the following new files:
> interfaces/libpq/win32.mak	- Makefile for Win32 (Visual C)
> interfaces/libpq/libpqdll.c   - Routine required to compile dynamic
> library
> interfaces/libpq/lubpqdll.def - List of functions to export from dynamic
> lib
> interfaces/libpq/win32.h      - Misc header stuff req. to work in win32
> win32.mak				- Top level make file. Will only
> make libpq now.
> 
> To compile it, you just issue the command
> "nmake /F win32.mak"
> src directory. A static and a dynamic version will be created.
> 
> When I have finished checking over the possiblities of doing the psql
> part too, I will look at writing a short README on how to do it.
> 
> 
> I hope this is interesting, and gets incorporated in the source soon.
> 
> 
> Regards,
>   Magnus Hagander
> 
> 
>  

I have applied this fine patch to allow WIN32 compiles of libpq.  Nice
job, and a good feature for us.


-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date

Next:From: Maarten BoekholdDate: 1998-07-03 07:44:24
Subject: Re: [HACKERS] no answer to Solaris 2.6 failure to build 6.3.2?
Previous:From: Bruce MomjianDate: 1998-07-03 04:08:14
Subject: Re: [HACKERS] implementing outer joins

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