pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
User defined functions in Postgresql, troubles with the c code
2+ messages / 2 participants
[nested] [flat]

* User defined functions in Postgresql, troubles with the c code
@ 2018-05-05 13:58  Christof Priller <christof_priller@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Christof Priller @ 2018-05-05 13:58 UTC (permalink / raw)
  To: pgsql-general

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?

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: User defined functions in Postgresql, troubles with the c code
@ 2018-05-06 20:54  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Christof Priller <christof_priller@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adrian Klaver @ 2018-05-06 20:54 UTC (permalink / raw)
  To: Christof Priller <christof_priller@hotmail.com>; pgsql-general

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-05-06 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-05-05 13:58 User defined functions in Postgresql, troubles with the c code Christof Priller <christof_priller@hotmail.com>
2018-05-06 20:54 ` Adrian Klaver <adrian.klaver@aklaver.com>

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