Re: question on gp2c-run results
American Citizen <[email protected]>
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <[email protected]> |
I rebuilt using gpc version 0.0.14 instead of the older 0.0.13, and I symbolically linked in the pari v2.18.1 pari.cfg file as the INSTALL asks as the very first thing to do Then gp2c-run test-polred.gp ran just fine, no exceptions noted It would be very nice to have the -v option for gp2c-run working, so one can check the version. This -v option works just fine for gp2c by itself. For example the -h option works fine for both gp2c and gp2c-run. Thank you. On 6/30/25 09:16, Bill Allombert wrote: > On Mon, Jun 30, 2025 at 08:44:27AM -0700, American Citizen wrote: >> Hello: >> >> I get the following results using the test-polred.gp file (included in this >> post) >> >> ? \r test-polred.gp >> X = 1.4142135623730950488016887242096980786 >> Y = 1.7320508075688772935274463415058723670 >> poly_x = x^2 - 2 >> poly_y = x^2 - 3 >> [[x, x^2 - 2], [x, x^2 - 3]] >> ? \q >> Goodbye! >> >> but running gp2c-run test-polred.gp has an unusual result for me. >> >> owner@localhost:~/math/Herons> gp2c-run test-polred.gp >> test-polred.gp.c: In function ‘test’: >> test-polred.gp.c:40:11: error: too many arguments to function ‘polred0’ >> 40 | red_x = polred0(poly_x, 0, NULL); >> | ^~~~~~~ >> In file included from /usr/local/include/pari/pari.h:47, >> from test-polred.gp.c:2: >> /usr/local/include/pari/paridecl.h:2399:9: note: declared here >> 2399 | GEN polred0(GEN x, long flag); >> | ^~~~~~~ >> test-polred.gp.c:41:11: error: too many arguments to function ‘polred0’ >> 41 | red_y = polred0(poly_y, 0, NULL); >> | ^~~~~~~ >> /usr/local/include/pari/paridecl.h:2399:9: note: declared here >> 2399 | GEN polred0(GEN x, long flag); >> | ^~~~~~~ > The headers files does not match gp2c. > You probably need to do 'make install' in the PARI directory that was used for GP2c. > > Cheers, > Bill >