Extension GMP/MPFR Versioning (The GNU Awk User’s Guide)
126.96.36.199 GMP and MPFR Version Information
The API also includes information about the versions of GMP and MPFR with which the running
gawk was compiled (if any). They are included in the API
struct as read-only constant integers:
- The major version of the GMP library used to compile
- The minor version of the GMP library used to compile
- The major version of the MPFR library used to compile
- The minor version of the MPFR library used to compile
These fields are set to zero if
gawk was compiled without MPFR support.
You can check if the versions of MPFR and GMP that you are using match those of
gawk with the following macro:
extensionis the extension id passed to all the other macros and functions defined in
gawkapi.h. If you have not included the
<mpfr.h>header file, then this macro will be defined to do nothing.
If you have included that file, then this macro compares the MPFR and GMP major and minor versions against those of the library you are compiling against. If your libraries are newer than
gawk’s, it produces a fatal error message.
dl_load_func()macro (see section Boilerplate Code) calls