GMP (the GNU MP library)is a widely known library for arbitrary precision arithmetic on integers, rational numbers and floating-point numbers. When using GMP in C/C++ projects, one must face some subtleties.Using GMP in CAccording toGMP's official documentation:All declarations needed to use GMP are collected in the include filegmp.h. It is designed to work with both C and C++ compilers.#includeNote however that prototypes for GMP functions withFILE *parameters are only provided ifis included too.#include#includeLikewise(or) is required for prototypes withva_listparameters, such asgmp_vprint
...
继续阅读
(32)