Re: [GENERAL] C++ port of Postgres

Поиск
Список
Период
Сортировка
От 'Andres Freund'
Тема Re: [GENERAL] C++ port of Postgres
Дата
Msg-id 20160817014944.hkfd46ipmj4rh76y@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [GENERAL] C++ port of Postgres  ("dandl" <david@andl.org>)
Ответы Re: [GENERAL] C++ port of Postgres  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
On 2016-08-17 11:51:04 +1000, dandl wrote:
> > > From my particular perspective it would be enough if all the
> > internal
> > > headers (that one needs to use in writing server-side extensions)
> > were
> > > completely usable in C++.
> > 
> > That should already be the case.  There's even a dirty hack^WWscript
> > that checks that that remains the case
> > (src/tools/pginclude/cpluspluscheck).
> 
> The source code for my project is here:
> https://github.com/davidandl/Andl/tree/master/plandl
> https://github.com/davidandl/Andl/blob/master/plandl/plandl.c
> 
> I was not able to get this file to compile correctly in C++, and my
> recollection is that at the time I asked on this list and that was the
> advice.

You need to include the files surrounded by extern "C" { }.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "dandl"
Дата:
Сообщение: Re: [GENERAL] C++ port of Postgres
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Slowness of extended protocol