Re: C++ User-defined functions - Mailing list pgsql-general

From Magnus Hagander
Subject Re: C++ User-defined functions
Date
Msg-id 49B56E66.8090907@hagander.net
Whole thread Raw
In response to Re: C++ User-defined functions  (George Oakman <oakmang@hotmail.com>)
Responses Re: C++ User-defined functions
Re: C++ User-defined functions
Re: C++ User-defined functions
List pgsql-general
George Oakman wrote:
>  Thanks Craig,
>
> I'm trying to compile a very simple test with Visual Studio (2008), but
> I get the following errors:

The PostgreSQL backend and header files are not compatible with Visual
Studio 2008. At least they're not tested wit hit. You need to try Visual
Studio 2005.


> c:\program files\postgresql\8.3\include\server\pg_config_os.h(188) :
> error C2011: 'timezone' : 'struct' type redefinition
> c:\program files\postgresql\8.3\include\server\pg_config_os.h(188) : see
> declaration of 'timezone'
> c:\program files\postgresql\8.3\include\server\pg_config_os.h(197) :
> error C2011: 'itimerval' : 'struct' type redefinition
> c:\program files\postgresql\8.3\include\server\pg_config_os.h(197) : see
> declaration of 'itimerval'
> c:\program files\postgresql\8.3\include\server\c.h(97) : fatal error
> C1083: Cannot open include file: 'libintl.h': No such file or directory
>
> I must be doing something wrong - I don't even have a libintl.h on my
> drive...

libintlh. is part of gettext, which is a dependency from the binary
version of pg. You can either get the whole sourcetree and reconfigure
it without gettext, or install gettext.


//Magnus


pgsql-general by date:

Previous
From: George Oakman
Date:
Subject: Re: C++ User-defined functions
Next
From: dobomode
Date:
Subject: 8.4 – Where, when, what...