Re: Postgres 8.3.3 & MSVC2005 (full edition)

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: el dorado <do_ra_do(at)mail(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres 8.3.3 & MSVC2005 (full edition)
Date: 2008-07-22 15:50:27
Message-ID: 488601C3.9000906@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

el dorado wrote:

> Have I forget some important option? Or I can't use the FULL version for compilation at all - only express edition?

They use the same compiler, and will produce compatible object code, so
the full or express editions will be fine.

> By the way - there is a directory 'D:\pgsql83\include\server\port\win32_msvc'. But I can't use it instead of 'D:\pgsql83\include\server\port\win32' (should I ?) - there is an error due to lack of file 'netdb.h' and some others in this directory.

That probably won't work well. IIRC it is necessary to put the
win32_msvc directory first in the header search path, followed by the
win32 directory.

From memory I had to create a dummy header for libintl as well - it's
not really needed for basic plugins, but is required for compilation of
the Pg headers. That dummy header should be floating around in the
mailing list archives.

There were very similar issues discussed some months ago, so I strongly
recommend that you search the archives.

On a side note, personally I think the `port/win32' subdir should be
renamed to `port/win32_mingw' and any truly shared files should be put
in `port/win32' ... but that's just me.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Soules 2008-07-22 16:26:25 Re: Problems Restarting PostgreSQL Daemon
Previous Message Glyn Astill 2008-07-22 15:41:10 Re: Initdb problem on debian mips cobalt: Bus error