Re: Compiling UDF DLL under Win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "anonymus(dot)crux" <anonymus(dot)crux(at)mail(dot)ee>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compiling UDF DLL under Win32
Date: 2006-02-07 09:38:57
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7FBA@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I was wondering if I can use VC compiler to compile UDF DLL ?
> If yes then I am wondering why I am getting linking errors:
>
> Compiling...
> fd.c
> Linking...
> Creating library Debug/fd.lib and object Debug/fd.exp
> fd.obj : error LNK2001: unresolved external symbol
> _CurrentMemoryContext Debug/fd.dll : fatal error LNK1120: 1
> unresolved externals
>
>
> It seems that linker is not able to find symbol CurrentMemoryContext.
> This variable is declared in palloc.h, but I can't find the
> implementation of this variable in libpostgres.a ?

No, you need to use mingw to compile extensions.

//Magnus

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2006-02-07 09:40:37 Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
Previous Message Martin Rode 2006-02-07 09:26:55 Postgresql Development Full Text