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