From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Harpreet Dhaliwal <harpreet(dot)dhaliwal01(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: #include "executor/spi.h" throwing errors |
Date: | 2006-08-30 06:28:06 |
Message-ID: | 20060830062805.GC13929@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Harpreet Dhaliwal | 2006-08-30 06:53:49 | Re: #include "executor/spi.h" throwing errors |
Previous Message | Harpreet Dhaliwal | 2006-08-30 06:16:36 | #include "executor/spi.h" throwing errors |