Trouble including pg_type.h - Mailing list pgsql-novice

From Vilches, Alejandro
Subject Trouble including pg_type.h
Date
Msg-id 9CE034E149417949A58AA9A4FA7E1C5584B0C2D9@ORSMSX109.amr.corp.intel.com
Whole thread Raw
Responses Re: Trouble including pg_type.h  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-novice

Hi,

 

I’m having issues trying to include <catalog/pg_type.h> in my program.  With the include paths correctly set, the compiler is able to find this file, but the issue is that this file is doing #include “catalog/genbki.h” (even though they’re side by side), so the compiler is trying to look for “catalog/catalog/genbki.h”.

 

For me, “pg_type.h” is located in: “/usr/pgsql-9.3/include/server/catalog”.  So besides adding “/usr/pgsql-9.3/include” to the include path, I’ve also added “/usr/pgsql-9.3/include/server”, and in my program I’m doing #include <catalog/pg_type.h>.

 

I searched through the mailing list archives and I could only find one other related issue:  http://www.postgresql.org/message-id/1314638642557-4746983.post@n5.nabble.com.  However, this is not quite the issue I’m having.

 

Any help or tips you can give are greatly appreciated.

 

Thanks!

Alejandro

pgsql-novice by date:

Previous
From: Daniel Smedegaard Buus
Date:
Subject: Triggers on bdr.bdr_nodes?
Next
From: Albe Laurenz
Date:
Subject: Re: Trouble including pg_type.h