Gmp Library Dev-c++

  

Well, I notice immediately without even reading the documentation very closely that you are not using the documented way to declare/initialize a GMP integer:
http://gmplib.org/manual/Integer-Functions.html#Integer-Functions
This says 'GMP integers are stored in objects of type mpz_t' -- not mpz_class which you have used in your code. Now, I don't know GMP, and for all I know this 'mpz_class' type may be a fine substitute, but it's not what the documentation says to do. If you are trying to do some unconventional (but okay) manner of utilizing this library then you might want to say a bit more about exactly how you're trying to use it.
http://gmplib.org/manual/Initializing-Integers.html#Initializing-Integers
This page says to use functions like mpz_init() for initializing, not the standard '=' operator.
http://gmplib.org/manual/Assigning-Integers.html#Assigning-Integers
If I understand this page right, it's saying that if you want to drop a massive value into your mpz_t integer, you use the function mpz_set_str and pass in a char array which contains a textual representation of the number you want to assign it to. It makes sense that you must do this, because the compiler cannot, on its own, grasp such a large number in true numerical form (if it could, there would be no need for this library).
Gmp library dev-c 2017

The library computes the greatest common divisor of two univariate integer polynomials, whose coefficients are represented by multiple-precision integers provided by the GMP library. I wrote the code originally for CGAL, in 2007, but it was later removed for maintenance reasons.

Gmp Library Documentation

I think the problem is that the literal number you want to assign to n is too large (which is why you are using GMP). By that I mean the compiler can't handle the actual number that you want to assign. I think the GMP library allows you to assign it as a string rather than a number. This project can now be found here. Summary Files Reviews Support Wiki Mailing Lists. This project can now be found here. Summary Files Reviews Support Wiki Mailing Lists. Optionally the libxml2 library for reading GraphML files. Optionally the GMP library to support arbitrary precision arithmetic. On Ubuntu and Debian Linux, installing the build-essential and optionally the libxml2-dev and libgmp-dev packages is sufficient. Can't you take the GMP.h and GMP.o and put them in the C:Dev-CLib and C:Dev-Cinclude directorys? I think that should do it, I = included the Allegro game programming library like that. GMP Install Instruction for Windows Platform. Currently Core Library (from v1.4) uses GNU Multiple Precision Arithmetic Library as its low level big number package.GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers.