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" { }. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers