Problem with comiling QuantLib-SWIG wrapper for C#/VS 2003

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

Problem with comiling QuantLib-SWIG wrapper for C#/VS 2003

Zbigniew Babiej
Dear All,

Did somebody manage to succesfully compile Quantlib-SWIG for C#/VS2003 ?
I am trying to do so, but without success.
I am using the following packages:
- Boost 1.33.1
- QuantLib-0.3.11 (also tried cvs checkout version)
- QuantLib-SWIG cvs checkout
- swigwin-1.3.28

The errors I am receiving are as follows:

1) c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\algorithm(31): error C2678: binary '==' : no operator found
which takes a left-hand operand of type 'std::allocator<_Ty>::value_type'
(or there is no acceptable conversion)
        with
        [
            _Ty=QuantLib::Callability
        ]

2) Source file
'C:\Dev\QuantLib\QuantLib-SWIG\CSharp\csharp\ExtendedDiscountCurve.cs' could
not be opened ('The system cannot find the file specified. ')
2) Source file
'C:\Dev\QuantLib\QuantLib-SWIG\CSharp\csharp\SWIGTYPE_p_GenericStochasticProcess.cs'
could not be opened ('The system cannot find the file specified. ')

After I define a fake operator== for Callablity class, then the first error
is gone, but I do not think that this is a good idea at all to modify the
codes this way.
Also, seems taht ExtendedDiscountCurve interface definition is missing  from
QuantLib-SWIG\SWIG folder. Seems like I am not using the right versions of
the packages mentioned above.
Could somebody comment this, please ?

Thank you in advance for your help,

Zbigniew Babiej, MarketXS.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



Reply | Threaded
Open this post in threaded view
|

Re: Problem with comiling QuantLib-SWIG wrapper for C#/VS 2003

Luigi Ballabio
On 2/22/06, Zbigniew Babiej <[hidden email]> wrote:
> Did somebody manage to succesfully compile Quantlib-SWIG for C#/VS2003 ?
> I am trying to do so, but without success.
> I am using the following packages:
> - Boost 1.33.1
> - QuantLib-0.3.11 (also tried cvs checkout version)
> - QuantLib-SWIG cvs checkout
> - swigwin-1.3.28

The current QuantLib-SWIG cvs cannot work with QuantLib 0.3.11---the
two need to be in synch. Downloading both 0.3.11 packages should work
(and you won't have to use SWIG yourself: the generated wrappers are
already included in the release.)
As for the cvs version, I'm not yet sure that it works; I'll test it
in the next few days.

Later,
    Luigi