bug-gmp
[Top][All Lists]
Advanced

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

cmp not defined?


From: Heiko Bauke
Subject: cmp not defined?
Date: Tue, 09 Apr 2002 12:39:07 +0200

Hi,

installed GMP 4.0.1 (with --enable-cxx) an tried to compile the
following programm

#include <iostream>
#include <gmpxx.h>

int main (void) {
  mpz_class a;
  a=1234;
  std::cout << cmp(a, 1) << "\n"; 
  return 0;
}

My compiler sayes:

address@hidden:~$ g++ -o cmp cmp.cc -lgmpxx
cmp.cc: In function `int main()':
cmp.cc:7: implicit declaration of function `int cmp(...)'
cmp.cc:7: warning: cannot pass objects of type `mpz_class' through `...'

In gmpxx.h I cannot find any function called cmp, but in 
http://swox.com/gmp/manual/C---Interface-Integers.html such a
function is discribed.

Did I something wrong?


        Heiko

-- 
-- Sprechen heißt urteilen. Schweigen heißt geurteilt haben.
-- (Hans Lohberger)
-- Supercomputing in Magdeburg @ http://tina.nat.uni-magdeburg.de
--                 Heiko Bauke @ http://www.uni-magdeburg.de/bauke



reply via email to

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