Xlib.h and pgconnection.h

Поиск
Список
Период
Сортировка
От Holger Veit
Тема Xlib.h and pgconnection.h
Дата
Msg-id 3C038212.1E11D07F@ais.fhg.de
обсуждение исходный текст
Список pgsql-bugs
Don't know whether this has been reported yet, as search of mailinglists
didn't find anything,
and it is also unclear whether this is a bug in PostgresQL headers or in
X11 headers (I suppose latter),
anyway:

<libpq++/pgconnection.h> declares a method Status() for PgConnection
class.
<Xlib.h> defines #define Status int for the return type of most X11 API
functions.

So if you first include <Xlib.h> and then <libpg++.h> in your
application program,
you get a compile error. The workaround is clear: first include
libpq++.h, then the
appropriate X11 headers, but this should be described at least in the
documentation.

Regards
Holger Veit

--
Please update your tables to my new e-mail address:
holger.veit$ais.fhg.de  (replace the '$' with '@'  -- spam-protection)

В списке pgsql-bugs по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #523: ERROR: fmgr_info: function 19053: cache lookup failed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #523: ERROR: fmgr_info: function 19053: cache lookup failed