Re: [INTERFACES] using c++ for functions

From: "Thomas G(dot) Lockhart" <lockhart(at)alumnus(dot)caltech(dot)edu>
To: David(dot)Gross(at)wanadoo(dot)fr
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] using c++ for functions
Date: 1998-07-13 14:50:23
Message-ID: 35AA1EAF.3021277B@apop-server.alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> I would like to know if it is possible to use C++ code
> to define new functions in Postgres...
> It works very well for C functions, but with C++ (on unix/linux
> systems), postgres can't find the function in the symbol table.

I don't know for sure, but I would suspect that C++ name mangling (or
something related) might be getting in the way. Have you looked at the
shared library with "nm" to see what the symbols actually are?

- Tom

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-07-13 14:54:26 Re: [HACKERS] atttypmod now 32 bits, interface change
Previous Message Bruce Momjian 1998-07-13 14:46:34 Re: [HACKERS] atttypmod now 32 bits, interface change