From: TalGloz <glozmantal@gmail.com>
To: pgsql-general@postgresql.org
Subject: including header files in a C extension
Date: Fri, 17 Aug 2018 10:24:24 -0700 (MST)
Message-ID: <1534526664316-0.post@n3.nabble.com> (raw)
Hi,
If I have an external library that I install using make install into the
/usr/local/include/libraryname path by default and I want to include it in a
C extension, the Makefile for the .so file includes the headers in
/usr/local/include/libraryname path.
Can I use #include <libraryname/header.h> when writing C/CPP code for my
PostgreSQL C extension or do I have to install the external library in a
different path than /usr/local/include/libraryname. I think that the
external library headers are not getting included.
I do manage to build the .so file without error.....
Thanks,
Tal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: glozmantal@gmail.com
Subject: Re: including header files in a C extension
In-Reply-To: <1534526664316-0.post@n3.nabble.com>
References: <1534526664316-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox