Bill Allombert on Tue, 27 Apr 2004 16:59:51 +0200


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

Re: gp: anal.c more bugs


On Tue, Apr 27, 2004 at 05:59:10AM -0700, Ilya Zakharevich wrote:
> On Wed, Mar 17, 2004 at 09:45:08PM +0100, Bill Allombert wrote:
> > A minima I would like the program below compile and link fine with the
> > command
> > 
> > gcc main.c -lpari
> > 
> > ----main.c----
> > #include <pari/pari.h>
> > int main(void)
> > {
> >   pari_init(4000000,500000);
> > }
> > --------------
> > 
> > and don't require to issue -lX11 or something else.
> 
> Another thought: can it be made to work with GMP kernel build?  If

No, currently you have to explicitely add -lgmp. 

> yes, and if then pari.so links with gmp.so, I see no reason why it
> can't be made to work with X11 as well...

That does not address whether the resulting binary will work when
dynamically linked with another libpari build. For GMP we explicitely
hard-code gmp in the soname to avoid the problem, we use
libpari-gmp-2.2.so.8 instead of libpari-2.2.so.8.

Cheers,
Bill.