How to use Quantlib in Matlab as a Mex File

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use Quantlib in Matlab as a Mex File

pajofego
Hello,

I'm trying to use Quantlib in my mex files for Octave or Matlab. The problem that. The linking of the libquantlib.la is done via the libtool. So my question ist, how can I use the libtool to generate a mex file? Is there a example or a little how to?

Thanks in advance    
pajofego
Reply | Threaded
Open this post in threaded view
|

Re: How to use Quantlib in Matlab as a Mex File

Luigi Ballabio
On Mon, 2009-07-20 at 05:50 -0700, pajofego wrote:
> I'm trying to use Quantlib in my mex files for Octave or Matlab. The problem
> that. The linking of the libquantlib.la is done via the libtool. So my
> question ist, how can I use the libtool to generate a mex file? Is there a
> example or a little how to?

I don't think you need to use libtool to link the library. I'm not
familiar with mex; but as for gcc, once QuantLib is installed it can be
linked to a program simply as

g++ foo.cpp -lQuantLib

Luigi


--

All generalizations are false, including this one.
-- Mark Twain



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users