Re: lots of errors from fmgr.h when I try to write a C UDF

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lots of errors from fmgr.h when I try to write a C UDF
Дата
Msg-id 13203.1391233780@sss.pgh.pa.us
обсуждение исходный текст
Ответ на lots of errors from fmgr.h when I try to write a C UDF  (Anh Pham <atpham.wpi@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Anh Pham
Дата:
Сообщение: lots of errors from fmgr.h when I try to write a C UDF
Следующее
От: csmtcy
Дата:
Сообщение: Re: Couldn't get the database from heroku