Ilya Zakharevich on Wed, 28 Apr 2004 01:58:58 +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 04:53:04PM +0200, Bill Allombert wrote: > > > 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. Then I see no reason to achieve the goal you set. At worst, we could install pari-config, so that gcc main.c -lpari `pari-config -l -I -D` works (emiting the required -l link-flags, -I include-flags, and -D define-flags). > > 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. Could you be more explicit: avoid *which* problem? Is ABI of the (5?) used X11 functions changing all the time? Yours, Ilya