Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
No that is not what I meant, I'll try to be more clear. When I installed Visual Studio it had a directory in my "My Documents" directory called "Projects". Under this directory I put a directory call "MPIR", one called "MPFR" and one called "MPC". Here is the "Projects" directory path as

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Chris Saunders
No that is not what I meant, I'll try to be more clear. When I installed Visual Studio it had a directory in my "My Documents" directory called "Projects". Under this directory I put a directory call "MPIR", one called "MPFR" and one called "MPC". Here is the "Projects" directory path as it

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
Actually I have just uploaded a ZIP file containing the MPFR build files to the files area here (mpfr.build.vc9.zip). Just subsitute the new build.vc9 directory and its contents for the old one. Brian Brian--- Thank you very much for uploading this file; this is greatly appreciate

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
On 10/04/2010 4:25 PM, Chris Saunders wrote: Hi Nicholas. I recently built MPIR, MPFR and MPC using Brian Gladmans Visual Studio 2008 projects for MPFR and MPC. I used the SVN for MPFR. I was successful in doing this and did one thing different from you. I put all of the projects in separat

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
Hi Nicholas Your directory layout is fine. The problem you are seeing is caused because my project files on my site are a bit out of date. If you open the project in the iDE and remove the three files that are causing these errors it might then be ok. But if you can let me have a suitable em

[mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Cactus
On Apr 10, 11:15 pm, Cactus wrote: > On Apr 10, 10:12 pm, Nicholas Kinar wrote: > > > > > > > > > > Yes - see my page at: > > > >http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php > > > > You need to obtain MPFR from their SVN repository as the release > > > version fails because it us

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Chris Saunders
Hi Nicholas. I recently built MPIR, MPFR and MPC using Brian Gladmans Visual Studio 2008 projects for MPFR and MPC. I used the SVN for MPFR. I was successful in doing this and did one thing different from you. I put all of the projects in separate directories under the "Projects" directory

[mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Cactus
On Apr 10, 10:12 pm, Nicholas Kinar wrote: > > Yes - see my page at: > > >http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php > > > You need to obtain MPFR from their SVN repository as the release > > version fails because it uses some obsolete symbols. > > > But I can advise you on all

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
Yes - see my page at: http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php You need to obtain MPFR from their SVN repository as the release version fails because it uses some obsolete symbols. But I can advise you on all of this because I have all of these packages working together. G

Re: [mpir-devel] building Sage with mpir-2.0.0

2010-04-10 Thread William Stein
On Sat, Apr 10, 2010 at 1:45 PM, Jean-Guillaume Dumas wrote: > William Stein a écrit : >> >> Hi, >> >> This email is about MPIR-2.0, Sage, and Givaro. >> >> With the define mentioned below put back in, Givaro builds. >> I've cc'd the Givaro lead dev in hopes that he'll remove explicit use >> of GM

Re: [mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
I agree with Willem that you will likely not be able to link with the static lib. The error message (though fairly obtuse) is consistent with that. If you can use Windows then that may be preferable. Yes - that is exactly what I am doing. I'm compiling MPIR on Windows and then using the V

Re: [mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Bill Hart
I agree with Willem that you will likely not be able to link with the static lib. The error message (though fairly obtuse) is consistent with that. If you can use Windows then that may be preferable. We don't provide instructions on the MPIR website regarding linking with other projects because t

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
I don't know whether this is possible on a MAC but I use MPIR, MPFR and Pavel Holoborodko's MPFR C++ interface on Windows x64 so the packages themselves are compatible. Brian Brian - thank you very much for pointing this out. How do you link MPIR with MPFR? Apparen

[mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Cactus
On Apr 10, 5:28 pm, Nicholas Kinar wrote: > > I don't know whether this is possible on a MAC but I use MPIR, MPFR > > and Pavel Holoborodko's MPFR C++ interface on Windows x64 so the > > packages themselves are compatible. > > >     Brian > > Brian - thank you very much for pointing this out.  H

Re: [mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
I don't know whether this is possible on a MAC but I use MPIR, MPFR and Pavel Holoborodko's MPFR C++ interface on Windows x64 so the packages themselves are compatible. Brian Brian - thank you very much for pointing this out. How do you link MPIR with MPFR? Apparently MPFR is look

Re: [mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
Hello--- mex -I/usr/local/include T_Zeta.cpp mpreal.cpp /usr/local/lib/libgmp.a /usr/local/lib/libmpfr.a Mex files are basically shared libraries, so I think you shouldn't be linking the non-PIC static versions of mpir/mpfr into your .mex. Does it work with the dynamic versio

Re: [mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
It should definitely be possible to build MPFR with MPIR. However I've definitely never seen that error before or anything like it. But we'll take a look around the net and see if we can figure it out. There are notes on the GMP website about issues with various Mac GCC's, but of course they w

[mpir-devel] Re: Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Cactus
On Apr 10, 2:47 pm, Nicholas Kinar wrote: > Hello--- > > I've written a program in C++ using the GMP and MPFR libraries.  I > would ideally like to use the MPFR library interfaced with MPIR.  My > program uses a wrapper (http://www.holoborodko.com/pavel/?page_id=12) > to interface my C++ code to

Re: [mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Willem Jan Palenstijn
On Sat, Apr 10, 2010 at 06:47:51AM -0700, Nicholas Kinar wrote: > Hello--- > > >> mex -I/usr/local/include T_Zeta.cpp mpreal.cpp /usr/local/lib/libgmp.a > >> /usr/local/lib/libmpfr.a Mex files are basically shared libraries, so I think you shouldn't be linking the non-PIC static versions of mpir

Re: [mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Bill Hart
It should definitely be possible to build MPFR with MPIR. However I've definitely never seen that error before or anything like it. But we'll take a look around the net and see if we can figure it out. There are notes on the GMP website about issues with various Mac GCC's, but of course they will

[mpir-devel] Link error when attempting to interface to Matlab MEX on Mac OS X

2010-04-10 Thread Nicholas Kinar
Hello--- I've written a program in C++ using the GMP and MPFR libraries. I would ideally like to use the MPFR library interfaced with MPIR. My program uses a wrapper (http://www.holoborodko.com/pavel/?page_id=12) to interface my C++ code to the MPFR library. I am then attempting to link my prog