Re: Building Windows Server Extensions Using VC++ 2005 - Mailing list pgsql-hackers

From Charlie Savage
Subject Re: Building Windows Server Extensions Using VC++ 2005
Date
Msg-id 4409CFFF.1010308@interserv.com
Whole thread Raw
In response to Re: Building Windows Server Extensions Using VC++ 2005  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Building Windows Server Extensions Using VC++ 2005  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Hi everyone,<br /><br /> Thanks for the feedback.  The reason for building extensions with MSVC on windows is to get
accessto the Micrsoft debugging tools since as far as I can see MingW/GDB cannot debug dynamically loaded dlls on the
Windowsplatform (or at least I haven't succeeded at doing it).<br /><br /> Anyway, with the few minor tweaks mentioned
thisseems to work fine.  I guess I would be surprised if it didn't since MinGW is commonly used for both creating and
usingDLLs on the Windows platform that integrate with programs and dlls built with VC++.  Other examples that work fine
arebuilding extensions for Python and Ruby using MingW, when both runtimes are built with VC++ (so the opposite case). 
Ofcourse, this compatibility might just be limited to the MinGW / VC++ combination, but that's all you need for this to
work.<br/><br /> Charlie<br /><br /> Tom Lane wrote: <blockquote cite="mid21532.1141490933@sss.pgh.pa.us"
type="cite"><prewrap="">"Magnus Hagander" <a class="moz-txt-link-rfc2396E"
href="mailto:mha@sollentuna.net"><mha@sollentuna.net></a>writes: </pre><blockquote type="cite"><pre wrap="">The
problemhere is that the backend is built with mingw but the
 
extension with msvc.   </pre></blockquote><pre wrap="">
I don't think that it's very reasonable to expect that to work.
The two compilers very likely have different rules for struct
packing, to take just the first gotcha.  Maybe they are compatible
enough that it will work, but if it does not we cannot fix it.
        regards, tom lane

 </pre></blockquote>

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Building Windows Server Extensions Using VC++ 2005
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: Not so happy with psql's new multiline behavior