[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug with mpz_ui_sub
From: |
Dominique DELANDE |
Subject: |
bug with mpz_ui_sub |
Date: |
Tue, 1 Apr 2003 14:28:11 +0200 |
User-agent: |
KMail/1.4.3 |
Dear Sir,
I think there is a bug in GMP 4.1.2 with the function mpz_ui_sub.
* Version GMP 4.1.2
* Test program follows :
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "gmp.h"
main()
{
mpz_t u;
mpz_init(u);
mpz_set_ui(u,2);
mpz_ui_sub(u,1,u);
mpz_clear(u);
}
* The program does not compile : error message is :
undefined reference to `mpz_ui_sub',
which seems to indicate that the function mpz_ui_sub is absent in the library.
The mpz subdirectory contains ui_sub.c ui_sub.o and ui_sub.lo
* I am using gcc-2.96, coming with the standard RedHat 7.3 distribution on a
i686 machine.
* uname -a output :
Linux b52.spectro.jussieu.fr 2.4.18v3 #1 SMP Thu Oct 3 11:59:59 CEST 2002 i686
unknown
* ./config.guess output :
pentium3-pc-linux-gnu
Yours sincerely
Dominique Delande
--
Dominique Delande (address@hidden)
Laboratoire Kastler-Brossel - Tour 12, Etage 1 - Universite P. et M. Curie
4, place Jussieu, F-75252 Paris Cedex 05, FRANCE
Phone : 33 (0)1 44 27 27 97 - Fax : 33 (0)1 44 27 38 45
- bug with mpz_ui_sub,
Dominique DELANDE <=