Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqiUF-0007v9-Gc for pgsql-general@arkaria.postgresql.org; Fri, 17 Aug 2018 17:24:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqiUD-00016v-R9 for pgsql-general@arkaria.postgresql.org; Fri, 17 Aug 2018 17:24:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqiUD-00016k-JP for pgsql-general@lists.postgresql.org; Fri, 17 Aug 2018 17:24:33 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqiU6-0003iV-KH for pgsql-general@postgresql.org; Fri, 17 Aug 2018 17:24:33 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 4DD26E9BC3AF for ; Fri, 17 Aug 2018 10:24:24 -0700 (MST) Date: Fri, 17 Aug 2018 10:24:24 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1534526664316-0.post@n3.nabble.com> Subject: including header files in a C extension MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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