Segmentation Errors

Marc Glisse marc.glisse at
Wed Mar 14 16:15:17 CET 2012

On Wed, 14 Mar 2012, Chris Osborne wrote:

No time to debug your code, just a few comments:

> #include <gmpxx.h>

If you're not going to use mpz_class, you can include just gmp.h (though I 
would advise you to use mpz_class ;-)

> char temp0[2000001];
> char temp1[2000010];

That's huge, don't put that on the stack.

Have you seen this?

Marc Glisse

More information about the gmp-discuss mailing list