1
0
Fork 0
mirror of https://gitlab.inria.fr/mpc/mpc.git synced 2025-12-05 22:37:13 +00:00
No description
Find a file
Andreas Enge b955d70803 mpc.h: Improve comment.
* src/mpc.h.in: Use comment that makes sense for mpc.h.
2025-09-24 17:14:14 +02:00
doc added mpc_log2 2025-09-23 10:59:37 +02:00
m4 Rename HAVE_COMPLEX_H to {_,}MPC_HAVE_COMPLEX_H. 2024-10-02 16:40:29 +02:00
src mpc.h: Improve comment. 2025-09-24 17:14:14 +02:00
tests added mpc_log2 2025-09-23 10:59:37 +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 fixed typo 2025-06-30 15:05:30 +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 use variable substitution for the minimal GMP/MPFR versions 2025-07-29 09:22:31 +02:00
COPYING.LESSER license change: 2011-08-29 16:48:03 +00:00
Dockerfile Add a CI job with clang. 2024-09-20 15:36:30 +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 added mpc_log2 2025-09-23 10:59:37 +02:00
README Move to version 1.3.2dev. 2022-12-16 15:38:29 +01:00
README.dev Release 1.3.0. 2022-12-09 15:19:08 +01:00
TODO Add a TODO item. 2024-09-20 16:26:19 +02:00

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

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.3.2.tar.gz
      cd mpc-1.3.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