Re: Using C++ With SPI?

Поиск
Список
Период
Сортировка
Искать

Re: Using C++ With SPI?

От:
"Clay Luther" <claycle@cisco.com>
Дата:
Thanks Tom.  That is good info.

(gnashing of teeth in background)

Clay



> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Wednesday, July 02, 2003 6:46 PM
> To: Clay Luther
> Cc: Doug McNaught; pgsql-general@postgresql.org
> Subject: Re: [GENERAL] Using C++ With SPI? 
> 
> 
> Clay Luther  writes:
> >> I had been having good luck writing stored procs in C++ with
> >> Postgres. 
> 
> I'm really surprised you were able to do much of anything.  
> C++ defines
> a bunch of keywords that are not keywords in plain C, and 
> unsurprisingly
> some of those words are used as names in various Postgres 
> header files.
> 
> There's been some talk of renaming stuff to make at least the most
> important headers C++-safe, but it's not very high on the priority
> list; I think there was concern about breaking existing user-written
> code.
> 
> I would think btw that you'd need extern "C" {...} around *all* the
> Postgres headers you include, not just some of 'em.
> 
> 			regards, tom lane
> 
FAQ