Re: lots of errors from fmgr.h when I try to write a C UDF - Mailing list pgsql-novice

From Tom Lane
Subject Re: lots of errors from fmgr.h when I try to write a C UDF
Date
Msg-id 13203.1391233780@sss.pgh.pa.us
Whole thread Raw
In response to lots of errors from fmgr.h when I try to write a C UDF  (Anh Pham <atpham.wpi@gmail.com>)
List pgsql-novice
Anh Pham <atpham.wpi@gmail.com> writes:
> I am trying to write a C user-defined function:

> *#include <fmgr.h>*
> *...*
> *#ifdef PG_MODULE_MAGIC*
> *PG_MODULE_MAGIC;*
> *#endif*
> ...

> However, when I tried to compile the code:
> *gcc -fpic -c* ...
> It gave me a lot of errors and warnings from fmgr.h:

Most Postgres backend header files assume that you've included
postgres.h first ... did you do that?

            regards, tom lane


pgsql-novice by date:

Previous
From: Anh Pham
Date:
Subject: lots of errors from fmgr.h when I try to write a C UDF
Next
From: csmtcy
Date:
Subject: Re: Couldn't get the database from heroku