GNU MPC

About

GNU MPC is a complex floating-point library with exact rounding. It is based on the GNU MPFR floating-point library, which is itself based on the GNU MP (GMP) library.

Versions available

Important

GNU MPC is included in the embedded third-party library in all GCC builds available in the software repository. See GNU Compiler Collection (GCC).

If you want to add MPC support to the baseline version of GCC, there are environment modules that provide access to the MPC installation. To list those modules execute on login node:

module available mpc

Then select the required version and gain access to its installation by executing:

module load mpc/1/1.3.1-gcc

You need to load the corresponding GNU MPFR and GNU MP (GMP) modules, since GMP installation depends on them. For example:

module load mpfr/4/4.2.1-gcc
module load gmp/6/6.3.0-gcc

Build recipe

If you are interested in the recipe we followed to compile the programming code of GNU MPC, you can find it here:

https://gitlab.discoverer.bg/vkolev/recipes/-/tree/main/gmp

Getting help

See Getting help