Re: using dll in am - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: using dll in am
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0F92A@algol.sollentuna.se
Whole thread Raw
In response to using dll in am  (David Hoksza <david.hoksza@seznam.cz>)
Responses Re: using dll in am  (David Hoksza <david.hoksza@seznam.cz>)
Re: using dll in am  (David Hoksza <david.hoksza@seznam.cz>)
List pgsql-hackers
> 5. Copy the dll to the bin directory (when I let it in the
> contrib directory, where also the libatomrtree.dll file with
> the AM functions is, so it writes out, that the modul can't
> be found, when loading it).
>
> 6. When there is "void *header = f_header()" anywhere in the
> source, so when trying to load the dll (when I try to create
> the index), it writes out, that "function can't be found" (I
> got czech version, so I'm not sure, what the message is in english).
>
>
> Does anybody got any hint, where the problem could be? I
> really can't find it:((

If I get you right, you have *two* DLLs? One in mingw that in turn loads
another one that's in VC++? If so, a couple of hints:

1) Run "depends" on the mingw DLL. It will list symbols that can't be
resolved. "depends" is a part of the Windows Support Tools, on your
windows CD.

2) Check that you can create a mingw *exe* that uses the functions in
the VC++ DLL. If not, make sure that works first, because that should be
easier to tweak.

//Magnus


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: using dll in am
Next
From: David Hoksza
Date:
Subject: Re: using dll in am