Re: [GENERAL] C++ port of Postgres - Mailing list pgsql-hackers

From 'Andres Freund'
Subject Re: [GENERAL] C++ port of Postgres
Date
Msg-id 20160817014944.hkfd46ipmj4rh76y@alap3.anarazel.de
Whole thread Raw
In response to Re: [GENERAL] C++ port of Postgres  ("dandl" <david@andl.org>)
Responses Re: [GENERAL] C++ port of Postgres
List 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 by date:

Previous
From: "dandl"
Date:
Subject: Re: [GENERAL] C++ port of Postgres
Next
From: Andres Freund
Date:
Subject: Re: Slowness of extended protocol