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] 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

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