Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: errcode redefinition



Tom Lane wrote:
Andrew Vick <avick(at)remote-print(dot)com> writes:

I am trying to build the Postgres drivers for Qt on Windows.


Why are these drivers trying to include elog.h?  That's a backend-only
header.  If the reason is that they're including postgres.h, they should
likely be including postgres_fe.h instead.

That is the case.  I tried switching it to postgres_fe.h, but then I got errors about the pg_type structure not being defined.  It appears that the CATALOG macro (which defines the structure) is defined in postgres.h but not in postgres_fe.h.  I don't see any other headers in src/ which do define it.

I worked around this by switching back to postgres.h, and #defining ELOG_H above postgres.h (to block elog.h).  Nonoptimal, but it gets the compile going again.

Thanks for the suggestion; knowing that elog.h was backend only gave me the courage to exclude it.

-Andrew Vick



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group