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

From Greg Stark
Subject Re: Building Windows Server Extensions Using VC++ 2005
Date
Msg-id 87lkvqrv8f.fsf@stark.xeocode.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
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> "Magnus Hagander" <mha@sollentuna.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Not so happy with psql's new multiline behavior
Next
From: Tom Lane
Date:
Subject: Re: problem with large maintenance_work_mem settings and