Re: [GENERAL] C++ port of Postgres

From: 'Andres Freund' <andres(at)anarazel(dot)de>
To: dandl <david(at)andl(dot)org>
Cc: 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 'Pg Hackers' <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] C++ port of Postgres
Date: 2016-08-17 01:49:44
Message-ID: 20160817014944.hkfd46ipmj4rh76y@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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" { }.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dandl 2016-08-17 01:51:04 Re: [GENERAL] C++ port of Postgres
Previous Message Tsunakawa, Takayuki 2016-08-17 01:16:02 Re: [GENERAL] C++ port of Postgres

Browse pgsql-hackers by date

  From Date Subject
Next Message dandl 2016-08-17 01:51:04 Re: [GENERAL] C++ port of Postgres
Previous Message Tom Lane 2016-08-17 01:40:32 Re: Slowness of extended protocol