Re: create trigger (can't compile example, problem with include files)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: create trigger (can't compile example, problem with include files)
Date: 2000-12-15 03:51:38
Message-ID: 9838.976852298@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Robert B. Easter" <reaster(at)comptechnews(dot)com> writes:
> I compared /usr/local/pgsql/include with
> /usr/src/postgresql-7.0.3/src/include and found that the src has more
> include files so that I tried:

Yeah, we keep meaning to clean up the include-file situation so that you
have some chance of compiling a useful C trigger with the installed
include files. Right now you pretty much have to -I a source tree.

> ttest.c: In function `trigf':
> ttest.c:17: `WARN' undeclared (first use in this function)
> ttest.c:17: (Each undeclared identifier is reported only once
> ttest.c:17: for each function it appears in.)

s/WARN/ERROR/. Looks like this example file never got updated when
that change was made, about three years ago :-(. Will fix.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-12-15 04:29:31 Re: adding a C function with optional arguments
Previous Message Tom Lane 2000-12-15 03:46:50 Re: Trigger/Function problem