Re: C-Functions using SPI - Missing Magic Block

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
Cc: Saitenheini(at)web(dot)de, pgsql-general(at)postgresql(dot)org
Subject: Re: C-Functions using SPI - Missing Magic Block
Date: 2010-07-03 08:43:31
Message-ID: 20100703084331.GA16272@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jul 03, 2010 at 09:35:56AM +0800, Craig Ringer wrote:
> On 02/07/10 21:26, Saitenheini(at)web(dot)de wrote:
>
> > #ifdef PG_MODULE_MAGIC
> > PG_MODULE_MAGIC;
> > #endif
>
> Why the conditional compilation of PG_MODULE_MAGIC?

That's the recommendation, so the module compiles on all versions of
Postgres.

> > ERROR: incompatible library "G:/PostgreSQL/8.3/lib/pgExampleSPI.dll":
> > missing magic block
> > TIP: Extension libraries are required to use the PG_MODULE_MAGIC macro.

My guess is that the installed server headers are not compatable with
th eversion of postgresql installed.

Have a nice day,

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patriotism is when love of your own people comes first; nationalism,
> when hate for people other than your own comes first.
> - Charles de Gaulle

In response to

Browse pgsql-general by date

  From Date Subject
Next Message aaaawwww 2010-07-03 13:45:52 Re: problems with encoding and accent letters
Previous Message Dean Rasheed 2010-07-03 07:54:10 Re: Half-applied UPDATE rule on view