bug-gmp
[Top][All Lists]
Advanced

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

bugs report - gmp_sprintf(...) - plz help...


From: MoZeS Rotgizer
Subject: bugs report - gmp_sprintf(...) - plz help...
Date: Sat, 26 Jul 2003 12:47:42 +0000

Bug Report:
=================================
programmer: M.Rotgizer (puyo) - address@hidden
date: 7/26/03

-------------------------------------------------------------------
Version: Gmp latest release (4.1.2)
OS: Unix
-------------------------------------------------------------------


-------------------------------------------------------------------
Code :
//////////////////////////////////////////////////////
#include <gmp.h>
#include <iostream.h>

void main(){
   mpz_t integ;
   char *strr;
   mpz_set_str (integ, "12345", 0);
   gmp_sprintf (strr,"%Zd",integ);
}
//////////////////////////////////////////////////////
-------------------------------------------------------------------


-------------------------------------------------------------------
Compiling command:
g++ 1.cpp -lgmp
-------------------------------------------------------------------


-------------------------------------------------------------------
Errors report:
1.cpp: In function `int main(...)':
1.cpp:9: implicit declaration of function `int gmp_sprintf(...)'
-------------------------------------------------------------------


-------------------------------------------------------------------
The output from running ./config.guess:
athlon-unknown-freebsd4.7
-------------------------------------------------------------------

I need to use the gmp_sprintf function and it doesn't work. Without it I can't complete my code.

thanks,

M.Rotgizer [puyo]
7/26/03

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail





reply via email to

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