Bill Allombert on Thu, 08 Dec 2005 15:01:19 +0100

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

Re: pari_init() hangs up [W32 - CygWin - Pari-2.2.11-alpha]

On Thu, Dec 08, 2005 at 01:58:08PM +0100, Alessio Rocchi wrote:
> My code looks like the following:
> #include "pari.h"
> int main(void){
>    pari_init(500000, 2);
>    printf("SUCCESS loading Pari!");
>    return 0;
> }
> I try to compile including the option -lpari (i'm using bloodshed dev c++ 
> with gcc)
> The final exe is built, but, as i launch my little program, the pari_init() 
> hangs up (the next printf() never get executed).
> The DOS-console is almost frozen.

It will probably not solve the hang up, but at least link also with -lm
and add a \n here:
printf("SUCCESS loading Pari!\n");
Due to line buffering, this is quite normal that nothing is displayed until
a \n is printed.