Skip site navigation (1) Skip section navigation (2)

problem with MyBackendId

From: Andreas 'ads' Scherbaum <adsmail(at)wars-nicht(dot)de>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: problem with MyBackendId
Date: 2005-08-02 22:08:34
Message-ID: 20050803000834.1c535bba.adsmail@wars-nicht.de (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
Hello,

i successfully installed PostgreSQL 8.0.3 and MingW on a windows xp box 
and tried to compile a module of mine. Thats the error i got back:

$ make
sed 's,MODULE_PATHNAME,$libdir/tablelog,g' tablelog.sql.in >tablelog.sql
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels -fno-strict-aliasing  -I. -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND  "-I../../src/include/port/win32"  -c -o tablelog.o tablelog.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels -fno-strict-aliasing  -I. -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND  "-I../../src/include/port/win32"  -c -o tablelog_restore.o tablelog_restore.c
dlltool --export-all  --output-def tablelog.def tablelog.o tablelog_restore.o
dllwrap  -o libtablelog.dll --dllname libtablelog.dll  --def tablelog.def tablelog.o tablelog_restore.o -L../../src/port -L../../src/backend -lpostgres 
Info: resolving _MyBackendId by linking to __imp__MyBackendId (auto-import)
fu000001.o(.idata$3+0xc): undefined reference to `libpostgres_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__MyBackendId'
collect2: ld returned 1 exit status
c:\mingw\bin\dllwrap.exe: c:\mingw\bin\gcc exited with status 1
make: *** [libtablelog.a] Error 1

He seems to be able to resolv MyBackendId, but thats all.
Has anybody an idea what is missing or wrong?
Thanks in advance.


Kind regards

-- 
				Andreas 'ads' Scherbaum
Failure is not an option. It comes bundled with your Microsoft product.
 (Ferenc Mantfeld)

Responses

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2005-08-02 22:33:54
Subject: Re: problem with MyBackendId
Previous:From: Michael GUIARDDate: 2005-08-01 11:32:34
Subject: Re: retreive record set

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group