SWIG 0.3.14 problems

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

SWIG 0.3.14 problems

Eric H Jensen
Greetings,

I just built the latest SWIG for csharp and ran into some problems along the way in the .i files.  I hope this is the correct list to post to.  

1) discountcurve.i, line 42 and line 47.  I could not find a InterpolatedDiscountCurve constructor with 5 inputs.  It appears that 'calendar' is not needed.

2) optimizers.i, line 213.  Could not find an appropriate constructor for Simplex.  Changed it to (Real lambda, Real tol)

3) ql.i, line 30.  QL_HEX_VERSION was causing the build to fail.  Changed it #if QL_HEX_VERSION < 0x000314f0

4) volatilities.i, line 162. The member defs were incorrect.  I took an educated guess and changed:

    %rename("max-option-date")  maxOptionDate;
    %rename("max-option-time")  maxOptionTime;
    %rename("max-swap-tenor")      maxSwapTenor;
    %rename("max-swap-length") maxSwapLength;

to

    %rename("max-start-date")  maxStartDate;
    %rename("max-start-time")  maxStartTime;
    %rename("max-length")      maxLength;
    %rename("max-time-length") maxTimeLength;

also changed the member names further down the file.

I am not sure whether my fixes are correct or not but I managed to succesfully build and am starting to use the subset I need.

eric


Reply | Threaded
Open this post in threaded view
|

Re: SWIG 0.3.14 problems

Luigi Ballabio

Hi,
        apologies for the delay.

On Mon, 2006-12-18 at 22:18 -0500, [hidden email] wrote:
> I just built the latest SWIG for csharp and ran into some problems along the way in the .i files.  I hope this is the correct list to post to.  

What version of QuantLib and QuantLib-SWIG are you using? Version 0.3.14
of both were compatible, and so (as of now) are the CVS snapshots.
However, you will run into problem if you mix 0.3.14 and CVS.

Later,
        Luigi


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

standards, n.:
The principles we use to reject other people's code.




Reply | Threaded
Open this post in threaded view
|

Re: SWIG 0.3.14 problems

Eric H Jensen
Greetings,

Looks like I used the QuantLib-0.3.14 distribution and downloaded QuantLib-SWIG via CVS (although I thought it was 0.3.14 which was just released at the time).

That is probably the issue.

Many thanks,

eric

On Thu, 04 Jan 2007 12:52:52 +0100, "Luigi Ballabio" <[hidden email]> said:

>
> Hi,
> apologies for the delay.
>
> On Mon, 2006-12-18 at 22:18 -0500, [hidden email] wrote:
> > I just built the latest SWIG for csharp and ran into some problems along the way in the .i files.  I hope this is the correct list to post to.  
>
> What version of QuantLib and QuantLib-SWIG are you using? Version 0.3.14
> of both were compatible, and so (as of now) are the CVS snapshots.
> However, you will run into problem if you mix 0.3.14 and CVS.
>
> Later,
> Luigi
>
>
> ----------------------------------------
>
> standards, n.:
> The principles we use to reject other people's code.
>
>