Re: Trouble including pg_type.h - Mailing list pgsql-novice

From Albe Laurenz
Subject Re: Trouble including pg_type.h
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50FA059D@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Trouble including pg_type.h  ("Vilches, Alejandro" <alejandro.vilches@intel.com>)
Responses Re: Trouble including pg_type.h  ("Vilches, Alejandro" <alejandro.vilches@intel.com>)
List pgsql-novice
Alejandro Vilches wrote:
> 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>.

Try

#include "catalog/pg_type.h"

What compiler on what platform are you using?

Yours,
Laurenz Albe

pgsql-novice by date:

Previous
From: "Vilches, Alejandro"
Date:
Subject: Trouble including pg_type.h
Next
From: "Armand Pirvu (gmail)"
Date:
Subject: shared_preload_libraries and pg_stat_statements