Re: C function on Windows 2003/XP

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Oisin Glynn <me(at)oisinglynn(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: C function on Windows 2003/XP
Date: 2008-08-07 02:45:09
Message-ID: 489A61B5.9010802@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oisin Glynn wrote:
> I am trying to follow the instructions on the 8.0 interactive comments
> (http://www.postgresql.org/docs/8.0/interactive/xfunc-c.html) to build a
> c function using MSDEV and PostgreSQL 8.3 on Windows XP/2003
>
> I am running into errors around. fatal error C1083: Cannot open include
> file: 'libintl.h': No such file or directory

The header is required for PostgreSQL to compile, but not for most
simple C extensions. You should be able to provide an empty stub.

Failing that, you can grab a copy of libintl.h and strip out everything
but function prototypes and any necessary macro/type declarations.

Personally I think the gettext headers need to be shipped with the
postgresql win32 binaries, or the headers need to be restructured so
libintl.h isn't exposed in public headers. I've been meaning to play
with the latter, but I find it rather hard to motivate myself to do
Windows-based coding ;-)

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-08-07 02:59:36 Re: Create Table Dinamic
Previous Message mian wang 2008-08-07 01:41:32 Re: Create Table Dinamic