Armel HERVE wrote:
In fact, the true command is gcc -shared -o pstypes.dll -Wl,--library-path=/c/Program\ Files/PostgreSQL/8.1/lib/,-l,pgport,-lpostgres,--out-implib,pstypes.a country.o and the response is Creating library file: pstypes.a country.o(.text+0x2e):country.c: undefined reference to `elog_start' country.o(.text+0x49):country.c: undefined reference to `elog_finish' country.o(.text+0xb0):country.c: undefined reference to `_imp__CurrentMemoryContext' country.o(.text+0xba):country.c: undefined reference to `MemoryContextAlloc' country.o(.text+0xf4):country.c: undefined reference to `elog_start' country.o(.text+0x10f):country.c: undefined reference to `elog_finish' country.o(.text+0x13d):country.c: undefined reference to `_imp__CurrentMemoryContext' country.o(.text+0x147):country.c: undefined reference to `MemoryContextAlloc' country.o(.text+0x1b0):country.c: undefined reference to `_imp__CurrentMemoryContext' country.o(.text+0x1ba):country.c: undefined reference to `MemoryContextAlloc' country.o(.text+0x205):country.c: undefined reference to `pfree' country.o(.text+0x241):country.c: undefined reference to `_imp__CurrentMemoryContext' country.o(.text+0x24b):country.c: undefined reference to `MemoryContextAlloc' country.o(.text+0x280):country.c: undefined reference to `pfree' country.o(.text+0x2eb):country.c: undefined reference to `_imp__CurrentMemoryContext' country.o(.text+0x2f5):country.c: undefined reference to `MemoryContextAlloc' country.o(.text+0x33f):country.c: undefined reference to `_imp__CurrentMemoryContext' country.o(.text+0x349):country.c: undefined reference to `MemoryContextAlloc' collect2: ld returned 1 exit status I tried to link with all found library with no success... Armel |