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.

------=_NextPart_000_5b5_41a7_3cb0
Content-Type: text/plain; format=flowed

I guess you ment

mpz_init(n); //instead of 'r'
mpz_init_set_ui(r,4);

or

mpz_init(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?!

Eric

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

------=_NextPart_000_5b5_41a7_3cb0
Content-Type: message/rfc822

X-Message-Info: QIy1oIULmHeZ0Z8YVLJR2rW+uLaxt5dD
Received: from b.swox.se ([212.247.3.182]) 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 [212.247.3.182])
	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 [127.0.0.1])
	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 ([127.0.0.1])
 by localhost (b.swox.se [127.0.0.1]) (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 [64.4.19.62])
	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 80.230.213.173 by lw12fd.law12.hotmail.msn.com with HTTP;
	Sun, 22 Jun 2003 02:39:34 GMT
X-Originating-IP: [80.230.213.173]
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,
 EMAIL_ATTRIBUTION, HTML_40_50, HTML_FONT_FACE_BAD, HTML_FONT_FACE_ODD,
 HTML_IMAGE_ONLY_06
X-Spam-Level: 
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>,
	<mailto:gmp-discuss-request@swox.com?subject=subscribe>
List-Id: GMP Discussions List <gmp-discuss.swox.com>
List-Unsubscribe: <https://gmplib.org/mailman/listinfo/gmp-discuss>,
	<mailto:gmp-discuss-request@swox.com?subject=unsubscribe>
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>
<DIV>
<DIV></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></DIV>
<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
gmp-discuss@swox.com
https://gmplib.org/mailman/listinfo/gmp-discuss


------=_NextPart_000_5b5_41a7_3cb0--