From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Charles F(dot) I(dot) Savage" <cfis(at)interserv(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Building Windows Server Extensions Using VC++ 2005 |
Date: | 2006-03-04 17:10:56 |
Message-ID: | 87lkvqrv8f.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> "Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> > The problem here is that the backend is built with mingw but the
> > extension with msvc.
>
> 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.
Well that sort of stuff is supposed to be covered by the ABI. Consider that if
it didn't then you wouldn't be able to use any of the standard libraries
without recompiling them for each compiler since a number of standard library
APIs depend on structs like timeval or stat.
I'm not saying there aren't risks, but in theory it's supposed to work.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-03-04 17:19:39 | Re: problem with large maintenance_work_mem settings and |
Previous Message | Tom Lane | 2006-03-04 17:08:25 | Not so happy with psql's new multiline behavior |