Unofficial read-only mirror repository of the mpc project
  • C 93.8%
  • M4 3.1%
  • Smarty 1.6%
  • Makefile 1.4%
  • DenizenScript 0.1%
Find a file
Andreas Enge fed144f2eb Switch to version 1.4.2dev.
* README, configure.ac, src/get_version.c, src/mpc.h.in: Update version.
2026-04-16 15:10:27 +02:00
doc Release 1.4.1. 2026-04-14 14:42:11 +02:00
m4 Rename HAVE_COMPLEX_H to {_,}MPC_HAVE_COMPLEX_H. 2024-10-02 16:40:29 +02:00
src Switch to version 1.4.2dev. 2026-04-16 15:10:27 +02:00
tests tests: Correct type error found by g++. 2026-04-14 14:42:06 +02:00
tools fixed underflow in mpcheck 2020-09-30 09:22:48 +02:00
.gitignore better like that 2025-07-29 10:10:41 +02:00
.gitlab-ci.yml ci: Add a check with g++. 2026-04-14 15:31:46 +02:00
.mailmap added .mailmap 2020-10-05 16:29:44 +02:00
AUTHORS Remove more occurrences of Makefile.vc. 2022-12-01 21:53:39 +01:00
BUGS preparing 1.0.0rc1 2012-07-07 11:50:26 +00:00
ChangeLog update some files in preparation of the 0.5 release 2008-09-16 14:46:58 +00:00
configure.ac Switch to version 1.4.2dev. 2026-04-16 15:10:27 +02:00
COPYING.LESSER license change: 2011-08-29 16:48:03 +00:00
Dockerfile ci: Add a check with g++. 2026-04-14 15:31:46 +02:00
Makefile.am Generate the pkg-config file mpc.pc 2025-07-28 13:17:40 +02:00
mpc.pc.in mpc.pc.in: Move mpfr to Requires.private. 2025-07-30 11:47:47 +02:00
NEWS Release 1.4.1. 2026-04-14 14:42:11 +02:00
README Switch to version 1.4.2dev. 2026-04-16 15:10:27 +02:00
README.dev Release 1.4.1. 2026-04-14 14:42:11 +02:00
TODO Add TODO item about mpc_fr_div() 2026-03-01 08:43:18 +01:00

Copyright (C) INRIA 2003, 2005, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2018, 2020, 2022, 2026

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.


GNU MPC is a complex floating-point library with exact rounding.
It is based on the GNU MPFR floating-point library (http://www.mpfr.org/),
which is itself based on the GNU MP library (http://gmplib.org/).


                        Installing GNU MPC
                        ==================

This is for the impatient, for deeper explanations see the chapter
"Installing GNU MPC" in the Texinfo documentation (type 'info mpc.info').

0. You first need to install GMP, the GNU Multiprecision Arithmetic Library,
   see <http://gmplib.org/>, and GNU MPFR, see <http://www.mpfr.org>.
   GNU MPC requires GMP version 5.0.0 or later
   and GNU MPFR version 4.1.0 or later.

1. In the directory of the GNU MPC archive, type

      tar xzf mpc-1.4.2.tar.gz
      cd mpc-1.4.2
      ./configure
      make

   This assumes that GMP and GNU MPFR are installed in a directory searched
   by default by the compiler. Otherwise, use --with-gmp=DIR or
   --with-mpfr=DIR with ./configure (see the Texinfo documentation).

2. You should run the test suite, type

      make check

   If any error occurs, please report it on the mailing list
   <mpc-discuss@inria.fr>.

3. To install the GNU MPC library, type

      make install

   By default, the files are copied into subdirectories of /usr/local.
   You need write permissions on these directories, or pass an alternative
   installation directory using the --prefix option to ./configure.

4. You can optionally create documentation, type

      make dvi

   or

      make ps

   This requires the Texinfo package (version 4.2 at least).

In case of difficulties, please send a description of the problem to
<mpc-discuss@inria.fr>.

##############################################################################

Known problems:
===============

When LD_LIBRARY_PATH is set to various paths, it might confuse the configure
script, even with --with-gmp and --with-mpfr options. Then try to unset
LD_LIBRARY_PATH.

##############################################################################

Note for AIX users:
===================

If GMP was built with the 64-bit ABI, before building and testing GNU MPC,
it might be necessary to set the OBJECT_MODE environment variable to 64
by, e.g.,
   export OBJECT_MODE=64
This has been tested with the C compiler IBM XL C/C++ Enterprise Edition
V8.0 for AIX, version: 08.00.0000.0021, GMP 4.2.4 and GNU MPFR 2.4.1.

##############################################################################

Note for Windows users:
=======================

If you want to compile mpc with mingw in the msys shell, you might need to
add the following to the configure command (or in your environment):

LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include

In addition, you might need to give the following additional argument to
configure (reported for mpc-0.9):

CPP="x86_64-w64-mingw32-gcc -E"

(reported by Sisyphus)

A project for Visual Studio is maintained independently by Brian Gladman at
https://github.com/BrianGladman/mpc