Re: pgevent warnings on mingw

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>, "Marko Kreen" <markokr(at)gmail(dot)com>
Subject: Re: pgevent warnings on mingw
Date: 2009-01-31 15:39:30
Message-ID: BBA31DBD44034799A0839F8836183B60@HIRO57887DE653
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

Sorry, I was not able to find the point to which you point.

> This appears to be exactly what you are *not* supposed to do. Which is
> assign an ordinal. See:
> http://msdn.microsoft.com/en-us/library/8e705t74(VS.71).aspx
>
> (that's just about the warning, there is a page somewhere with more
> details, but I can't find it right now)

Please see this, if the point which you suggest becomes about output image size.
== Before ==
-rwxr-xr-x 1 HIROSHI Administ 425977 Feb 1 00:33 pgevent.dll
== After patch. ==
-rwxr-xr-x 1 HIROSHI Administ 425955 Feb 1 00:34 pgevent.dll

Then, new pgevent.def is this.
; C:\MinGW\bin\dlltool.exe --export-all-symbols -A --output-def pgevent.def pgevent.o pgmsgevent.o
EXPORTS
DllRegisterServer(at)0 @ 1
DllUnregisterServer = DllUnregisterServer(at)0 @ 2
DllUnregisterServer(at)0 @ 3
g_module @ 4 DATA
DllRegisterServer = DllRegisterServer(at)0 @ 5

Regards,
Hiroshi Saito

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2009-01-31 15:44:22 Re: [PATCH] Space reservation v02
Previous Message Magnus Hagander 2009-01-31 15:34:46 Re: mingw check hung