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 1fFQfb-0000zm-Nq for pgsql-general@arkaria.postgresql.org; Sun, 06 May 2018 20:54:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fFQfZ-0002sx-N0 for pgsql-general@arkaria.postgresql.org; Sun, 06 May 2018 20:54:09 +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 1fFQfY-0002sn-In for pgsql-general@lists.postgresql.org; Sun, 06 May 2018 20:54:09 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fFQfV-0003U9-1p for pgsql-general@postgresql.org; Sun, 06 May 2018 20:54:07 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 320FA219EA; Sun, 6 May 2018 16:54:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 06 May 2018 16:54:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=nPiTYpd4dqBtly3CKocRVaAlRLTfz CWd3EKLRQmLz7s=; b=AyPErCa3434DRh63+wl1EdNwRvagK+jzkBlGuCQGu4Eb3 bJ/jTlvoXHQHtEAvOPquY9OzER0vuWg9LN7/wls6ekYgQqghuy4KjlLiP8tQdf42 0nmdaqH8tWg4UejRbp59eXV5YEYACMngTvsCs0OKRAzk73ZbY9Ix24IKO6/AhTkA o7D/h3gyPiy2S0rpbCCAXwyyBnpdTbh18gxCYnaF5lG3dym7yOT3RJ3zP/BGT0er 6ToNzPe5HSuACCzywIgatnnGay3zPqdYTNQsXuADFKf1Me8mQiUFH977kgknvZw8 aMBwgYPL59tGfGDX2WxooGwP4/OMU75Rfksdp+a+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=nPiTYp d4dqBtly3CKocRVaAlRLTfzCWd3EKLRQmLz7s=; b=WR8e5S1vdBTDCiKy6nMJvT 4ijzr4EgcffwhvlxylounqJfpwOkXKHRcgfUyk6Tnf8cmkJb74nMD3FOa4WFZVQR 4PWbaPXMLHK0qV51FOGu3wAnsC7dOtTIOjyWoUAOH6J4CqVZrDbg48Ys2msv80+z /5WsJhOOe/1H66yFE5SjHRY1fSMIgyXZa0KH+50bVo2KTx//vMDwTwfTQDIn+AK9 oyBANtn88jcwHctPa6x+rKIqkl5995uHEou0Bc0U64JPSjk/0JE6wTN/8wwt6gd7 7YiUJvNVcb8b2NTNZUOirq7m18rOEN4dtQIfputUGXYPNOOg7v4tLJu/bXovhGow == X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 7475310253; Sun, 6 May 2018 16:54:02 -0400 (EDT) Subject: Re: User defined functions in Postgresql, troubles with the c code To: Christof Priller , "pgsql-general@postgresql.org" References: From: Adrian Klaver Message-ID: Date: Sun, 6 May 2018 13:54:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/05/2018 06:58 AM, Christof Priller wrote: > Hi, > I'm searching somebody who has experience with C user defined functions > in PostgreSQL. > > Testing out a simple program which includes the postgres.h file does not > work and gives me the following error code in Eclipse. > > C:\Program Files\PostgreSQL\10\include\server/c.h:99:21: fatal error: > libintl.h: No such file or directory > > I wrote the following source: > > #include > #include > #include "postgres.h" > //#include "fmgr.h" > > int main(void) { >       puts("Hello World"); >       return EXIT_SUCCESS; > } > > Should I include the linbintl.h file in the source code or what should I Do? I see you are on Windows. How did you install Postgres? > -- Adrian Klaver adrian.klaver@aklaver.com