Fwd: MPFR_C++ mpir2.4.0 Help wanted

4 views
Skip to first unread message

Jason

unread,
Sep 28, 2011, 5:41:11 AM9/28/11
to mpir-...@googlegroups.com

---------- Forwarded Message ----------

Subject: MPFR_C++ mpir2.4.0 Help wanted
Date: Wednesday 28 September 2011, 09:57:04
From: Ludovic GIRAUD <b001...@essec.edu>
To: themp...@gmail.com

Hi, I'm using Visual C++ express editiion 2005 under windows and I needed to
use big numbers like 1000^{1000} with a maximum of precision so I was told
to use the mpreal.h class and mpfr,
so I downloaded: mpir-2.4.0.tar mpfr and mpfr_c++, I replaced all doubles in
my programm with mpreals and managed to compile after having made the right
lib include links. The thing is when I compile I get plenty unresolved
tokens, I made the right include links, can you please check it out? This is
the linker error messages followed by the code I compile
http://pastebin.com/KcNg1h5J

Thanks for your help it would be greatly appreciated

Ludo

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

Jason

unread,
Sep 28, 2011, 5:41:24 AM9/28/11
to mpir-...@googlegroups.com

---------- Forwarded Message ----------

Subject: Fwd: MPFR_C++ mpir2.4.0 Help wanted
Date: Wednesday 28 September 2011, 10:01:08


From: Ludovic GIRAUD <b001...@essec.edu>
To: themp...@gmail.com

I tried to follow these steps
http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php
to get mpfr going in c++ under visual c++ express edition 2005 but it seems
to be for visual studio 2010 only...

Cactus

unread,
Sep 28, 2011, 6:27:50 AM9/28/11
to mpir-...@googlegroups.com, b001...@essec.edu
Hi Ludo,
 
It is hard to help you as I am using the latest versions of MPIR, MPFR and MPFRC++ with Visual Studio 2010.
 
I am wondering why you have not upgraded from VC++ Express 2005 to VC++ Express 2010?
 
If it is failing only in the linking step, maybe you have not added mpir.lib and/or mpfr.lib to your project?
 
Another possible problem is that your versions of mpir, mpfr and mpfrc++ are not compatible. The latest template works with mpfr 3.0 but I suspect that mpir 2.4 and mpfr 3.0 are not compatible.
 
It will be easier to make this work if you upgrade to VC++ Express 2010 (which is free).
 
   best regards, 
 
     Brian Gladman
 
Reply all
Reply to author
Forward
0 new messages