Re: Building Windows Server Extensions Using VC++ 2005

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Building Windows Server Extensions Using VC++ 2005
Дата
Msg-id 87lkvqrv8f.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Building Windows Server Extensions Using VC++ 2005  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Building Windows Server Extensions Using VC++ 2005  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Not so happy with psql's new multiline behavior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: problem with large maintenance_work_mem settings and