Bill Allombert on Sun, 05 May 2019 02:07:44 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PATCH: support install() on Win: [Re: Please test pari-2.11.2 prerelease 1]


On Sat, May 04, 2019 at 05:06:25AM -0700, Ilya Zakharevich wrote:
> Sorry, I thought that this is self-explanatory.  To load a function,
> you need a handle to a loaded ???image??? (DLL or EXE).  The ???old??? code
> hardwires the name of the PARI DLL.  This cannot work (neither on
> Unix, nor on Windows;?????????but I do not know how to fix it on Unix). 
> 
> There are 3 typical cases:
> 
> a) "addii" is in the EXE file (such as a static build of GP).
> b) "addii" is in the libPARI.DLL (such as something dynamically linked
>    with libPARI).
> c) "addii" is in a DLL statically linked with libPARI (such as in
>    Math::Pari DLL?????????which is by default statically linked with [a
>    custom build of] libPARI).
> 
> The ???old??? implementation supports only the case ???b???.

The issue is that the function does not know whether addii is in the EXE
file or libPARI.DLL, so it should try both.

In any case, thanks a lot for the solution to this problem which is
about 20 years old now.

Cheers,
Bill.