From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Christof Priller <christof_priller@hotmail.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: User defined functions in Postgresql, troubles with the c code
Date: Sun, 6 May 2018 13:54:01 -0700
Message-ID: <fe632041-9d70-9460-eabd-cf6455e89096@aklaver.com> (raw)
In-Reply-To: <VI1P189MB0287BA26118949C627FA9794F2850@VI1P189MB0287.EURP189.PROD.OUTLOOK.COM>
References: <VI1P189MB0287BA26118949C627FA9794F2850@VI1P189MB0287.EURP189.PROD.OUTLOOK.COM>
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 <stdio.h>
> #include <stdlib.h>
> #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
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: adrian.klaver@aklaver.com, christof_priller@hotmail.com
Subject: Re: User defined functions in Postgresql, troubles with the c code
In-Reply-To: <fe632041-9d70-9460-eabd-cf6455e89096@aklaver.com>
References: <VI1P189MB0287BA26118949C627FA9794F2850@VI1P189MB0287.EURP189.PROD.OUTLOOK.COM> <fe632041-9d70-9460-eabd-cf6455e89096@aklaver.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