Isaac Morland <[email protected]> writes:
> On Sun, 5 Jul 2020 at 18:07, Tom Lane <[email protected]> wrote:
>> Something like the attached works for me; what problem are you having
>> *exactly*?

> I've attached a .cpp file.

My example wrapped the Postgres #include's, the PG_MODULE_MAGIC call,
and the PG_FUNCTION_INFO_V1 call(s) in extern "C" { ... }.  I'm pretty
sure you need to do all three of those things to get a working result
without mangled external function names.

                        regards, tom lane


Reply via email to