Re: problem with MyBackendId

Andreas 'ads' Scherbaum <[email protected]> Wed, 10 Aug 2005 23:48:19 +0200
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
On Tue, 02 Aug 2005 18:33:54 -0400
Tom Lane <[email protected]> wrote:

> "Andreas 'ads' Scherbaum" <[email protected]> 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.

this works.

Thanks for the tip.


Kind regards

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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq