2010/3/9 Takahiro Itagaki :
>
> Magnus Hagander wrote:
>
>> >> The existing mechanism
>> >> works (as demonstrated by the fact that the contrib modules work on
>> >> Windows).
>> >
>> > Did we use non-standard tools except msvc in the build framework
>> > for core code? And what should I do for an
Magnus Hagander wrote:
> >> The existing mechanism
> >> works (as demonstrated by the fact that the contrib modules work on
> >> Windows).
> >
> > Did we use non-standard tools except msvc in the build framework
> > for core code? And what should I do for an external project?
>
> Yes, we use mi
2010/3/8 Takahiro Itagaki :
>
> Tom Lane wrote:
>
>> Takahiro Itagaki writes:
>> > I'd like to propose to define PGALWAYSEXPORT macro:
>> > #ifdef WIN32
>> > #define PGALWAYSEXPORT __declspec (dllexport)
>> > #endif
>> > and modify PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 to use it
>>
Tom Lane wrote:
> Takahiro Itagaki writes:
> > I'd like to propose to define PGALWAYSEXPORT macro:
> > #ifdef WIN32
> > #define PGALWAYSEXPORT __declspec (dllexport)
> > #endif
> > and modify PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 to use it
> > instead of PGDLLEXPORT.
>
> This se
Takahiro Itagaki writes:
> I'd like to propose to define PGALWAYSEXPORT macro:
> #ifdef WIN32
> #define PGALWAYSEXPORT __declspec (dllexport)
> #endif
> and modify PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 to use it
> instead of PGDLLEXPORT.
This seems like change for the sake of chang
"Kevin Flanagan" wrote:
> 1. you have to define the symbol BUILDING_DLL in your code before
> including postgres.h
No, BUILDING_DLL does not work. We use PGDLLIMPORT both exported global
variables and PG_MODULE_MAGIC/PG_FUNCTION_INFO_V1 for now, but actually
we should always use __declspec (dll
arch 2010 10:05
To: Kevin Flanagan
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Visual Studio 2005, C-language function - avoiding hacks?
Kevin Flanagan wrote:
> Ok, re "building with the win32 configuration" ... that sounds like just the
> thing I should know about.
On Fri, Mar 5, 2010 at 9:50 AM, Craig Ringer
wrote:
> Dave Page wrote:
>> On Fri, Mar 5, 2010 at 9:31 AM, Craig Ringer
>> wrote:
>>
>>> Why _not_ distribute gettext headers, though? Sources I can understand
>>> for size reasons, but the headers are small and fuss free, and you need
>>> the _right
Kevin Flanagan wrote:
> Ok, re "building with the win32 configuration" ... that sounds like just the
> thing I should know about. All I've done is downloaded and installed the
> 1-click installer for Windows from
> http://www.enterprisedb.com/products/pgdownload.do#windows ... so while I'm
> su
nks
Kevin
-Original Message-
From: Craig Ringer [mailto:cr...@postnewspapers.com.au]
Sent: 05 March 2010 04:02
To: Kevin Flanagan
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Visual Studio 2005, C-language function - avoiding hacks?
Kevin Flanagan wrote:
> the comp
Dave Page wrote:
> On Fri, Mar 5, 2010 at 9:31 AM, Craig Ringer
> wrote:
>
>> Why _not_ distribute gettext headers, though? Sources I can understand
>> for size reasons, but the headers are small and fuss free, and you need
>> the _right_ _versions_ to build against the Pg backend.
>
> No reason
On Fri, Mar 5, 2010 at 9:31 AM, Craig Ringer
wrote:
> Why _not_ distribute gettext headers, though? Sources I can understand
> for size reasons, but the headers are small and fuss free, and you need
> the _right_ _versions_ to build against the Pg backend.
No reason, other than I didn't realise
Dave Page wrote:
> On Fri, Mar 5, 2010 at 9:05 AM, Craig Ringer
> wrote:
>
>> How do _you_ go about building server extensions for Pg? Where do you
>> get the headers for gettext etc?
>
> Same place I get the binaries - gnuwin32 mostly.
>
>> I'm increasingly thinking the win32 package _should_
On Fri, Mar 5, 2010 at 9:05 AM, Craig Ringer
wrote:
> How do _you_ go about building server extensions for Pg? Where do you
> get the headers for gettext etc?
Same place I get the binaries - gnuwin32 mostly.
> I'm increasingly thinking the win32 package _should_ be split into
> server binary an
Dave Page wrote:
> On Fri, Mar 5, 2010 at 4:02 AM, Craig Ringer
> wrote:
>> Kevin Flanagan wrote:
>>
>>> the compiler
>>> complained about various missing include files, starting with
>>> ‘libintl.h’. Having read the post at
>>> http://archives.postgresql.org/pgsql-general/2009-03/msg00332.php I
>
On Fri, Mar 5, 2010 at 4:02 AM, Craig Ringer
wrote:
> Kevin Flanagan wrote:
>
>> the compiler
>> complained about various missing include files, starting with
>> ‘libintl.h’. Having read the post at
>> http://archives.postgresql.org/pgsql-general/2009-03/msg00332.php I
>> created an empty libint.h
Kevin Flanagan wrote:
> the compiler
> complained about various missing include files, starting with
> ‘libintl.h’. Having read the post at
> http://archives.postgresql.org/pgsql-general/2009-03/msg00332.php I
> created an empty libint.h in an include dir
NFI why Pg for win32 doesn't bundle a cop
I have PostgreSQL 8.4 installed on Windows XP, and am using Visual Studio
2005 to write a C-Language function. I have the most basic hello-world type
example (just the 'add_one' function from
http://www.postgresql.org/docs/8.4/interactive/xfunc-c.html) in a DLL, set
to compile to C code rather than
18 matches
Mail list logo