Re: BasisPointValue method does not exist in QuantLib for C#

Posted by sergvil on
URL: http://quantlib.414.s1.nabble.com/BasisPointValue-method-does-not-exist-in-QuantLib-for-C-tp5329p5335.html

When I try to execute swig.cmd, it throws me the next errors:

(1) : Error: Unable to find 'swig.swg'
(3) : Error: Unable to find 'csharp.swg'
..\SWIG\quantlib.i(29) : Error: Unable to find 'exception.i'
..\SWIG\common.i(22) : Error: Unable to find 'stl.i'
..\SWIG\common.i(23) : Error: Unable to find 'exception.i'
..\SWIG\vectors.i(23) : Error: Unable to find 'stl.i'
..\SWIG\types.i(23) : Error: Unable to find 'std_common.i'
..\SWIG\date.i(26) : Error: Unable to find 'stl.i'
..\SWIG\linearalgebra.i(26) : Error: Unable to find 'stl.i'
..\SWIG\daycounters.i(27) : Error: Unable to find 'stl.i'
..\SWIG\null.i(23) : Error: Unable to find 'exception.i'
..\SWIG\calendars.i(26) : Error: Unable to find 'stl.i'
..\SWIG\instruments.i(26) : Error: Unable to find 'stl.i'
..\SWIG\options.i(30) : Error: Unable to find 'stl.i'
..\SWIG\grid.i(25) : Error: Unable to find 'stl.i'
..\SWIG\statistics.i(25) : Error: Unable to find 'stl.i'

And in VS2010 project, when I try to regenerate the SWIG CSharp solution, this error appears on quantlib_wrap.hpp

"error C1083: Cannot open include file: 'ql/quantlib.hpp': No such file or directory"

QL_DIR environment variable is set to my local QuantLib installation directory.

I have no idea how to solve this issue.

Than you very much.

Luigi Ballabio wrote
On Fri, 2011-09-16 at 02:55 -0700, sergvil wrote:
>
> Yes, I'm using Windows. Where Can I find the necessary parameters to do the
> job?

As I said, they're inside QuantLib-SWIG/CSharp/swig.cmd.

Luigi


> Luigi Ballabio wrote:
> >
> > On Fri, 2011-09-16 at 02:23 -0700, sergvil wrote:
> >>
> >> Ok, now I just add a couple of calculations in CashFlows.i as they are
> >> defined in C++ class. How can I regenerate the wrappers?
> >
> > You're working on a Windows machine, I guess?  You'll need swig.exe in
> > your path, then you can run swig.cmd in QuantLib-SWIG/CSharp that
> > invokes it with the correct parameters.  After that, recompile the
> > wrappers and you should be good to go.
> >
> > Luigi
> >
> >
> > --
> >
> > Of course, if people could just act consistently, they could keep
> > their desks clean, avoid cavities, lose weight, give up smoking,
> > play a musical instrument, and possibly even produce software on
> > a regular and timely basis.
> > -- Alistair Cockburn
> >
> >
> >
> > ------------------------------------------------------------------------------
> > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> > http://p.sf.net/sfu/rim-devcon-copy2
> > _______________________________________________
> > QuantLib-users mailing list
> > QuantLib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/quantlib-users
> >
> >
>

--

Reasonable people adapt themselves to the world. Unreasonable people
attempt to adapt the world to themselves. All progress, therefore,
depends on unreasonable people.
-- G.B. Shaw



------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users