Обсуждение: FAQ

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

FAQ

От
Louis Zirkel III
Дата:
I've just read through the FAQ on the postgresql.org homepage and I can't
seem to find any reference to my problem so I'm resorting to asking the
question here.  If the answer to my question is found in another FAQ
somewhere, please point me in the correct direction.

Anyway, I'm writing a program using ncurses and libpq and I'm getting a
conflict of two different types of 'bool' defined.  Obviously both systems
define a bool data type, and I could go in and comment out one to solve
the problem, but I'd like to know if anyone has run into this situation
and if so what they did to solve it.  I'd be happy to make a change to the
header file, but I don't want to break any other applications that might
end up using the headers.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Louis Zirkel III (lzirkel@cleverly.com)             System Admin/Programmer
 "We're living on the Edge of the Century"                           -- Styx


Re: [GENERAL] FAQ

От
Bruce Momjian
Дата:
> I've just read through the FAQ on the postgresql.org homepage and I can't
> seem to find any reference to my problem so I'm resorting to asking the
> question here.  If the answer to my question is found in another FAQ
> somewhere, please point me in the correct direction.
>
> Anyway, I'm writing a program using ncurses and libpq and I'm getting a
> conflict of two different types of 'bool' defined.  Obviously both systems
> define a bool data type, and I could go in and comment out one to solve
> the problem, but I'd like to know if anyone has run into this situation
> and if so what they did to solve it.  I'd be happy to make a change to the
> header file, but I don't want to break any other applications that might
> end up using the headers.

I thought we fixed that in 6.4 so bool was not visible to outside
applications.  You probably can comment it out of libpq.h.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: [GENERAL] FAQ

От
Louis Zirkel III
Дата:
On Wed, 21 Apr 1999, Bruce Momjian wrote:

> I thought we fixed that in 6.4 so bool was not visible to outside
> applications.  You probably can comment it out of libpq.h.

You know, I'm not sure what version of the database I'm running.  It may
very well be that this is an older version (<6.4) and maybe if I just
upgraded it would be solved.  I'll give that a try and report back.
Thanks for pointing that out.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Louis Zirkel III (lzirkel@cleverly.com)             System Admin/Programmer
 "We're living on the Edge of the Century"                           -- Styx


Re: [GENERAL] FAQ

От
Louis Zirkel III
Дата:
On Wed, 21 Apr 1999, Louis Zirkel III wrote:

> On Wed, 21 Apr 1999, Bruce Momjian wrote:
>
> > I thought we fixed that in 6.4 so bool was not visible to outside
> > applications.  You probably can comment it out of libpq.h.
>
> You know, I'm not sure what version of the database I'm running.  It may
> very well be that this is an older version (<6.4) and maybe if I just
> upgraded it would be solved.  I'll give that a try and report back.
> Thanks for pointing that out.

I just got done compiling and installing v6.4.2 and I recompiled my app
and I no longer get the warning.  Thanks for helping me realize what a
bonehead i am... ;-)  BTW, it seems faster too...

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Louis Zirkel III (lzirkel@cleverly.com)             System Admin/Programmer
 "We're living on the Edge of the Century"                           -- Styx