Re: Compiling UDF DLL under Win32

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Compiling UDF DLL under Win32
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7FBA@algol.sollentuna.se
обсуждение исходный текст
Ответ на Compiling UDF DLL under Win32  ("anonymus.crux" <anonymus.crux@mail.ee>)
Ответы Re: Compiling UDF DLL under Win32  ("anonymus.crux" <anonymus.crux@mail.ee>)
Список 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


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

Предыдущее
От: "anonymus.crux"
Дата:
Сообщение: Compiling UDF DLL under Win32
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and