Re: [SQL] g++ not working for postgresql extension languages?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] g++ not working for postgresql extension languages?
Дата
Msg-id 24987.987296897@sss.pgh.pa.us
обсуждение исходный текст
Ответ на g++ not working for postgresql extension languages?  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
Список pgsql-interfaces
Lonnie Cumberland <lonnie_cumberland@yahoo.com> writes:
> so now I do not understand why the "gcc" version works and the "g++" version
> does not?

You need to say extern "C" to persuade a C++ compiler to compile a
function as something that can be called from plain C.  They are not
the same language.  See your C++ documentation for more info.
        regards, tom lane


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