Thread: SPI linking problems on Win32

SPI linking problems on Win32

From
"Ronald Kuczek"
Date:
Hi,
I'm using Postgresql 7.1.3 on NTServer. I have tried to compile my functions
using SPI on my Windows box.
Under Linux these functions are compiling and working but Windows....
I can't compile (or better say link) even fulltextindex function (from
contrib/fulltextindex) - they are using SPI too.
Error message I get if I try to link:
ft_create.o ../../src/utils/dllinit.o -lcygipc -lcrypt -lplpgsql
ft_create.o(.text+0x4d):ft_create.c: undefined reference to `SPI_exec'
ft_create.o(.text+0x9d):ft_create.c: undefined reference to `SPI_exec'
ft_create.o(.text+0xb0):ft_create.c: undefined reference to `SPI_connect'
ft_create.o(.text+0xc1):ft_create.c: undefined reference to `SPI_finish'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
Any idea ?

Rony