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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Lonnie Cumberland <lonnie_cumberland(at)yahoo(dot)com>
Cc: Stephen Jackson <Stephen(dot)Jackson(at)panting-deer(dot)org(dot)uk>, <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Re: [SQL] g++ not working for postgresql extension languages?
Date: 2001-04-15 19:52:30
Message-ID: Pine.LNX.4.30.0104152150520.760-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-sql

Lonnie Cumberland writes:

> trdata=# select concat_text('a','d');
> ERROR: Load of file /test/trfuncs.so failed: /test/trfuncs.so: undefined
> symbol: MemoryContextAlloc__FP17MemoryContextDataUi

Name mangling at its finest. You need to put extern "C" around all
#include's of PostgreSQL header files as well.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Lonnie Cumberland 2001-04-15 21:27:55 Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Previous Message Lonnie Cumberland 2001-04-15 18:20:11 Re: Re: [SQL] g++ not working for postgresql extension languages?

Browse pgsql-sql by date

  From Date Subject
Next Message Lonnie Cumberland 2001-04-15 21:27:55 Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Previous Message Nelson Ferreira Jr 2001-04-15 18:52:56 Re: How to store gif or jpeg? Thanks!