Re: #include "executor/spi.h" throwing errors

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: #include "executor/spi.h" throwing errors
Дата
Msg-id 20060830062805.GC13929@svana.org
обсуждение исходный текст
Ответ на #include "executor/spi.h" throwing errors  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
Ответы Re: #include "executor/spi.h" throwing errors  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
Список pgsql-general
On Wed, Aug 30, 2006 at 02:16:36AM -0400, Harpreet Dhaliwal wrote:
> Hi,
> I'm trying to use SPI for database connectivity at the server side.

<snip>

> This throws hell lot of errors (hundreds of them), even if i don't have any
> SPI code in my C file as of now.
>
> Can anyone please tell me whats going wrong and what header files should be
> kept where?

Well, you're doing something wrong then:

$ cat a.c
#include <executor/spi.h>
$ gcc -I /usr/include/postgresql/server -c a.c
$

No errors or warnings. Please show the exact command you're using.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Harpreet Dhaliwal"
Дата:
Сообщение: #include "executor/spi.h" throwing errors
Следующее
От: "Harpreet Dhaliwal"
Дата:
Сообщение: Re: #include "executor/spi.h" throwing errors