Re: problem with MyBackendId - Mailing list pgsql-hackers-win32

From Tom Lane
Subject Re: problem with MyBackendId
Date
Msg-id 25079.1123022034@sss.pgh.pa.us
Whole thread Raw
In response to problem with MyBackendId  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Responses Re: problem with MyBackendId
List pgsql-hackers-win32
"Andreas 'ads' Scherbaum" <adsmail@wars-nicht.de> writes:
> 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:

> nmth000000.o(.idata$4+0x0): undefined reference to `_nm__MyBackendId'

MyBackendId isn't DLLIMPORT'ed.  I believe you can hack around this by
doing

extern DLLIMPORT BackendId MyBackendId;

in your own code.

            regards, tom lane

pgsql-hackers-win32 by date:

Previous
From: Andreas 'ads' Scherbaum
Date:
Subject: problem with MyBackendId
Next
From: "Richard Luckhurst"
Date:
Subject: Problem installing Postgresql 8 on Win 2000