Re: using dll in am

From: David Hoksza <david(dot)hoksza(at)seznam(dot)cz>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: using dll in am
Date: 2006-04-23 19:10:23
Message-ID: 1679480382.20060423211023@seznam.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Uff, I finally got it. It's very simple. I was trying to use dlltool
all the time, but the solution is much simplier - just use directly
the .lib file with gcc and it will handle it. So easy that it didn't
cross my mind:)

gcc "....." atomrtget.o atomrtree.o atomrtscan.o atomrtcostestimate.o rtreewrapper.lib

Thanks,
David

________________________________
23. dubna 2006, 20:05:00, napsal jste:

>> 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:((

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

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

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

MH> //Magnus

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2006-04-23 20:08:01 Re: TODO items..
Previous Message David Hoksza 2006-04-23 18:42:20 Re: using dll in am