Re: [HACKERS] using C++ to define new functions

From: Michal Mosiewicz <mimo(at)interdata(dot)com(dot)pl>
To: David Gross <David(dot)Gross(at)lri(dot)fr>
Cc: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] using C++ to define new functions
Date: 1998-07-19 23:46:27
Message-ID: 35B28553.45AD9432@interdata.com.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Gross wrote:
>
> Hello,
>
> Sorry to disturb the hacker list for a question that seems not so hard.
> But I got no answers elsewhere...
> Is is definitively impossible to use C++ to define new SQL functions or operators
> in SQL ? (I need this in order to use a big geometric library, to produce e.g. polygon
> intersections, or harder).
>[...]
> but the linking style of c++ is rather different.
> Do you have an idea ?

How about using extern "C" {...} ?

Mike

--
WWW: http://www.lodz.pdi.net/~mimo tel: Int. Acc. Code + 48 42 2148340
add: Michal Mosiewicz * Bugaj 66 m.54 * 95-200 Pabianice * POLAND

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gnoh, Chee Seng 1998-07-20 01:31:51 Recalling previous commands at the PSQL prompt
Previous Message Paul A Vixie 1998-07-19 19:27:13 cidr