Trouble including "pg_type.h" - Mailing list pgsql-novice

From bradg
Subject Trouble including "pg_type.h"
Date
Msg-id 1314638642557-4746983.post@n5.nabble.com
Whole thread Raw
Responses Re: Trouble including "pg_type.h"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
I was hoping someone could point me in the right direction. After three days
of searching and reading and fooling around, I'm out of options.

I get compiler errors when I include "pg_type.h" in my project. The error
appears to happen around the line:
*CATALOG(pg_type,1247) BKI_BOOTSTRAP BKI_ROWTYPE_OID(71) BKI_SCHEMA_MACRO*

And the errors include:
*Parse Issue: Expected ')'
Parse Issue: Expected ';' after top level declarator
Parse Issue: Unknown type name 'FormData_pg_type'*

When I just import "libpq-fe.h" there are no compiler problems. And I am
able to successfully send and receive data in PostgreSQL.

The second I add "pg_type.h" I get problems. And I would like to include
"pg_type.h" so I can use the datatype oids in my program instead of
hard-coding the values.

For what it's worth. I'm programming in OS X 10.7 with Xcode 4.1 using the
PostgreSQL files from the EnterpriseDB one-click installer.

Thanks in advance for any insight.

Brad

--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Trouble-including-pg-type-h-tp4746983p4746983.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Known problem? Column mixup in sql-function
Next
From: Tom Lane
Date:
Subject: Re: Trouble including "pg_type.h"