Alberto Zanoni on Sun, 08 Mar 2020 18:04:14 +0100


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

Re: Help request for segmentation fault


Thank you very much ! It's definitely much better, now!

Alberto

2020-03-05 20:19 GMT+01:00, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
> 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.
>