i have a question about gmp_printf

delta trinity deltatrinity@hotmail.com
Sat, 21 Jun 2003 23:20:51 -0400

This is a multi-part message in MIME format.

Content-Type: text/plain; format=flowed

I guess you ment

mpz_init(n); //instead of 'r'


mpz_set_ui(r,4); //instead of init_set

Ok, have you tried to include stdio.h?  I know that GMP calls it internally, 
who know, maybe it'll fix the error?!


MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  

Content-Type: message/rfc822

X-Message-Info: QIy1oIULmHeZ0Z8YVLJR2rW+uLaxt5dD
Received: from b.swox.se ([]) by mc9-f22.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600);
	 Sat, 21 Jun 2003 19:40:04 -0700
Received: from b.swox.se (b.swox.se [])
	by b.swox.se (Postfix) with ESMTP
	id 6141820BA; Sun, 22 Jun 2003 04:40:02 +0200 (CEST)
X-Original-To: gmp-discuss@b.swox.com
Delivered-To: gmp-discuss@b.swox.com
Received: from localhost (localhost.swox.se [])
	by b.swox.se (Postfix) with ESMTP id 1F5F9208D
	for <gmp-discuss@b.swox.com>; Sun, 22 Jun 2003 04:39:47 +0200 (CEST)
Received: from b.swox.se ([])
 by localhost (b.swox.se []) (amavisd-new, port 10024) with LMTP
 id 90440-03-10 for <gmp-discuss@b.swox.com>;
 Sun, 22 Jun 2003 04:39:36 +0200 (CEST)
Received: from hotmail.com (law12-f62.law12.hotmail.com [])
	by b.swox.se (Postfix) with ESMTP id 0C2AA20B2
	for <gmp-discuss@swox.com>; Sun, 22 Jun 2003 04:39:36 +0200 (CEST)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Sat, 21 Jun 2003 19:39:34 -0700
Received: from by lw12fd.law12.hotmail.msn.com with HTTP;
	Sun, 22 Jun 2003 02:39:34 GMT
X-Originating-IP: []
X-Originating-Email: [mzsrtgzr@hotmail.com]
From: "MoZeS Rotgizer" <mzsrtgzr@hotmail.com>
To: gmp-discuss@swox.com
Subject: i have a question about gmp_printf
Mime-Version: 1.0
Content-Type: text/html
Message-ID: <Law12-F62w5C6XEPpB0000842af@hotmail.com>
X-OriginalArrivalTime: 22 Jun 2003 02:39:34.0682 (UTC) FILETIME=[842CC7A0:01C33867]
X-Spam-Status: No, hits=-7.5 tagged_above=-10.0 required=1.0 tests=BAYES_20,
Sender: gmp-discuss-admin@swox.com
Errors-To: gmp-discuss-admin@swox.com
X-BeenThere: gmp-discuss@swox.com
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Help: <mailto:gmp-discuss-request@swox.com?subject=help>
List-Post: <mailto:gmp-discuss@swox.com>
List-Subscribe: <https://gmplib.org/mailman/listinfo/gmp-discuss>,
List-Id: GMP Discussions List <gmp-discuss.swox.com>
List-Unsubscribe: <https://gmplib.org/mailman/listinfo/gmp-discuss>,
List-Archive: <http://gmplib.org/list-archives/gmp-discuss/>
Date: Sun, 22 Jun 2003 02:39:34 +0000
Return-Path: gmp-discuss-admin@swox.com

<html><div style='background-color:'><DIV>
<P>hey, i am a c++ programmer. I tried the GMP library and i'm very impresed..</P>
<P>but i tried the:</P><FONT face=CMTT10>
<P align=left>int </FONT><FONT face=CMBX10>gmp printf </FONT><FONT face=CMSS10 size=3>(</FONT><FONT face=CMTT10 size=3>const char *</FONT><FONT face=CMSLTT10 size=3>fmt</FONT><FONT face=CMTT10 size=3>, ...</FONT><FONT face=CMSS10 size=3>)</P>
<P></FONT>and the linux compiler gives this error message:</P>
<P>1.cpp:11: implicit declaration of function `int gmp_printf(...)'</P>
<P>and i wrote: </P>
<P>mpz_t r, n;<BR>mpz_init (r);<BR>mpz_init_set_ui(r,4);<BR>//gmp_printf ("%Zd\n", "j",r);<BR>gmp_printf ("%Z",r);<BR></P>
<P>just to try the code, not for something serious. </P>
<P>please tell me what the bug is, i'm helpless.</P>
<P>thanks... :)</P>
<P><STRONG>M.Rotgaizer </STRONG></P>
<DIV>&nbsp;&nbsp; known as <STRONG>PuYo<IMG height=12 src="http://graphics.hotmail.com/emwink.gif" width=12></STRONG></DIV>
<DIV></DIV></DIV></DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMYEN/2752??PS=">ELIMINATE E-MAIL VIRUSES.</a> Get 2 months FREE*.</html>
gmp-discuss mailing list