Bill Allombert on Thu, 05 Mar 2020 20:19:51 +0100


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

Re: Help request for segmentation fault


On Thu, Mar 05, 2020 at 08:06:26PM +0100, Alberto Zanoni wrote:
> Hello,
>          I ask for help, as this is my first time using gp2c. I
> generated the below reported file (with the main function at the end
> manually added) with gp2c by a PARI/GP script I wrote, and I compiled
> it with

Hello Alberto,

There are two problems with your program:

1) You need to call
init_df8(DEFAULTPREC) 
after pari_init(), otherwise START is not initialized.

2) 0 is not a valid precision, you should do
df8test(DEFAULTPREC);

Cheers,
Bill.