Re: using dll in am

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "David Hoksza" <david(dot)hoksza(at)seznam(dot)cz>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: using dll in am
Date: 2006-04-23 18:05:00
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA0F92A@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-04-23 18:30:51 Re: Additional current timestamp values
Previous Message Tom Lane 2006-04-23 17:47:25 Re: using dll in am