Yes, this is true. The API is not isolated for SPI, so you see
everything, including C pollution into the C++ namespace. Not sure
about a solution, except renaming some of the identifiers in the
backend. We have discussed that, and are waiting for more reports of
problems before taking it on.
[ Charset KOI8-R unsupported, converting... ]
> Bruce Momjian wrote:
>
> > Sounds like you want to use the SPI interface.
>
> Thanks, I've read carefully about SPI and tried some things.
> No problems with using C with SPI.
> But when I've tried to compile C++ code with SPI,
> I've found that some SPI headers use the following names:
> class, typename. So this can't be compiled with g++.
> Declarations like
> typedef struct foo {/*...*/} *foo;
> also used, and caused compilation errors.
>
> It is much desired to me to compile with g++.
> Old code uses libpq++, libpq supports C++, SPI look like NOT.
> Is it true ?
>
>
> --
> Vladimir Zolotych gsmith@eurocom.od.ua
>
>
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026