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 по дате отправления:

Предыдущее
От: Giles Lean
Дата:
Сообщение: Re: DBD::Pg 0.96 and DBI 1.15 ignoring username and password
Следующее
От: Lonnie Cumberland
Дата:
Сообщение: Re: g++ not working for postgresql extension languages?