Ilya Zakharevich on Fri, 19 Mar 2004 21:14:14 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gp: anal.c more bugs |
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 This is a laudable goal; unfortunately, it has no chance to work portably. At least you need -lm. > As of now this is broken: > /home/bill/pari/i686/lib/libpari.so: undefined reference to `plot_outfile_set' > /home/bill/pari/i686/lib/libpari.so: undefined reference to `set_pointsize' > /home/bill/pari/i686/lib/libpari.so: undefined reference to `rectdraw0' > /home/bill/pari/i686/lib/libpari.so: undefined reference to `term_set' > /home/bill/pari/i686/lib/libpari.so: undefined reference to `PARI_get_plot' > collect2: ld returned 1 exit status *These* are because one plotting module is omited. Adding it and -lX11 should fix things. AFAIU, on most architectures one can compile libpari.dll so that -lX11 is not needed on the main application. Hope this helps, Ilya