Compiling libpq with VisualC

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Compiling libpq with VisualC
Date: 2004-05-28 12:00:18
Message-ID: 40B729D2.4000608@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Some modifications are needed to compile libpq with vc6:

fe-connect.c:
- pg_config_paths.h isn't available. SYSCONFDIR is already defined so
fe-connect.c doesn't need to include that.
patch appended

win32.mak:
- pg_config.h must be generated
- port/pgstrcasecmp.c is needed
- port/path.c is not needed
- the current cvs version includes some bogus cr characters, when
checking out with wincvs the file will contain several cr cr lf lines
which will confuse nmake.

Because the last problem might be difficult to handle as diff, I
attached win32.mak as complete file, with all cr stripped so it may be
committed safely with any cvs client.

Regards,
Andreas

Attachment Content-Type Size
fe-connect.c.diff text/plain 499 bytes
WIN32.MAK text/plain 5.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2004-05-28 12:24:31 yet another contrib module
Previous Message Gaetano Mendola 2004-05-28 11:35:10 Re: tablespaces and DB administration

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message efesar (the kay) 2004-05-28 14:49:43 Re: [pgsql-advocacy] win32 port getting popular
Previous Message Andrew Dunstan 2004-05-28 11:04:05 Re: Re : Win32 binaries test / pg_dump problem

Browse pgsql-patches by date

  From Date Subject
Next Message Thomas Hallgren 2004-05-28 13:19:50 Re: Link errors on win32
Previous Message Andreas Pflug 2004-05-28 11:44:45 thread safety testing fix