Re: Can I use extern "C" in an extension so I can use C++?

Поиск
Список
Период
Сортировка
От Isaac Morland
Тема Re: Can I use extern "C" in an extension so I can use C++?
Дата
Msg-id CAMsGm5fvhKjfGMqPuJE2w+yFLP0QARGMV7JqxqbcHjG1LEUMQg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Can I use extern "C" in an extension so I can use C++?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, 5 Jul 2020 at 18:49, Tom Lane <tgl@sss.pgh.pa.us> wrote:

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.

I wrapped my entire file - #includes and all - in extern "C" { ... } and it worked perfectly. Thanks very much for your assistance and patience.

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: A patch for get origin from commit_ts.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: TAP tests and symlinks on Windows