Re: Re: [SQL] g++ not working for postgresql extension languages? - Mailing list pgsql-interfaces

From Peter Eisentraut
Subject Re: Re: [SQL] g++ not working for postgresql extension languages?
Date
Msg-id Pine.LNX.4.30.0104152150520.760-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: [SQL] g++ not working for postgresql extension languages?  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
Responses Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
List pgsql-interfaces
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@gmx.net   http://funkturm.homeip.net/~peter



pgsql-interfaces by date:

Previous
From: Lonnie Cumberland
Date:
Subject: Re: Re: [SQL] g++ not working for postgresql extension languages?
Next
From: Lonnie Cumberland
Date:
Subject: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff