bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bugs with C++ and gmp-4.0


From: Nathalie Revol
Subject: bugs with C++ and gmp-4.0
Date: Fri, 14 Dec 2001 18:54:14 +0100 (MET)

Hello,

I am trying to work on the C++ interface of MPFR, and I get
error messages when I (try to) compile, related to gmp-4.0,
on conflicting function declarations.

Info on my machine and compiler (the same compiler I used to install
gmp-4.0 and mpfr):
uname -a
SunOS pastaga 5.8 Generic sun4u sparc SUNW,Ultra-5_10

g++ -v
gcc version 2.95.2 19991024 (release)


Here are the error messages:

g++  -o mpfr++.o -c mpfr++.C -I/home/nrevol/ARITH/MP/GNUC/gmp-4.0 
-I/home/nrevol/ARITH/MP/GNUC/mpfr 
In file included from mpfr++.H:22,
                 from mpfr++.C:2:
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1961: declaration of C function `class 
ostream & oper
ator <<(ostream &, const __mpq_struct *)' conflicts with
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1960: previous declaration `class 
ostream & operator
<<(ostream &, const __mpz_struct *)' here
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1962: declaration of C function `class 
ostream & oper
ator <<(ostream &, const __mpf_struct *)' conflicts with
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1961: previous declaration `class 
ostream & operator
<<(ostream &, const __mpq_struct *)' here
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1964: declaration of C function `class 
istream & oper
ator >>(istream &, __mpq_struct *)' conflicts with
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1963: previous declaration `class 
istream & operator
>>(istream &, __mpz_struct *)' here
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1965: declaration of C function `class 
istream & oper
ator >>(istream &, __mpf_struct *)' conflicts with
/home/nrevol/ARITH/MP/GNUC/gmp-4.0/gmp.h:1964: previous declaration `class 
istream & operator
>>(istream &, __mpq_struct *)' here
make: *** [mpfr++.o] Error 1

Thanks for your help
        Nathalie
        
PS: I have no access to the Pentium having problems with the
assembler file for the time being. I will give you the latest
news about installing gmp-4.0 on it when I can.

---------------------------------------------------------------------------

     Nathalie REVOL
     LIP - Projet INRIA Arenaire           tel : (33) 4-72-72-86-42
     Ecole Normale Superieure de Lyon      Fax : (33) 4-72-72-80-80
     69364 Lyon Cedex 07                   address@hidden
     FRANCE                                http://www.ens-lyon.fr/~nrevol

---------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]