Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 55819125101 for ; Tue, 15 May 2012 07:58:39 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SUFSd-0000sU-Me for pgsql-bugs@postgresql.org; Tue, 15 May 2012 10:58:38 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4FAwMWP021846; Tue, 15 May 2012 06:58:22 -0400 (EDT) To: "Ibrahim, Karim Aly Mohi Eldin" cc: "pgsql-bugs@postgresql.org" Subject: Re: Error with refering to the header files In-reply-to: <37E2237DEB47A347B779768285A19AD657C058E9@S281.admin.wpi.edu> References: <37E2237DEB47A347B779768285A19AD657C058E9@S281.admin.wpi.edu> Comments: In-reply-to "Ibrahim, Karim Aly Mohi Eldin" message dated "Tue, 15 May 2012 00:56:34 -0400" Date: Tue, 15 May 2012 06:58:22 -0400 Message-ID: <21845.1337079502@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/84 X-Sequence-Number: 33055 "Ibrahim, Karim Aly Mohi Eldin" writes: > I’m new to postgres and I have some C files that execute sql commands in the early parser stage.. > It has to include #include "libpq-fe.h" which is in the "interface" folder not the "include" folder so I edited the make file like following: Not sure about the specific error you're getting, but ISTM you're going about this all wrong anyway. Using libpq from inside the backend is, unless you're trying to do dblink-like remote access, just broken. Consider SPI instead if you want to issue SQL-level queries. regards, tom lane