Login  Register

Re: Problem in extending QuantLibXL functionality

Posted by Max-118 on Feb 06, 2008; 5:46pm
URL: http://quantlib.414.s1.nabble.com/Problem-in-extending-QuantLibXL-functionality-tp5520p5522.html

Hi Eric, Nicola,

Thanks for your quick help and explanation! Now the code generation
works after changing "quote" to "Quote" in stock.xml.

But I failed to compile "QuantLibAddin/qlo/stock.cpp" and
"QuantLibXL/qlxl/Functions/stock.cpp".

Here is the error from building project QuantLibObjects:
Compiling...
vo_stock.cpp
stock.cpp
.\qlo\stock.cpp(8) : error C2512: 'QuantLibAddin::Instrument' : no
appropriate default constructor available

Here is the error from building project QuantLibXLStatic:
Compiling...
stock.cpp
.\Functions\stock.cpp(88) : error C2661: 'QuantLibAddin::Stock::Stock'
: no overloaded function takes 3 arguments

The source code of QuantLibAddin\qlo\stock.hpp and
QuantLibAddin\qlo\stock.cpp are exactly the same as the online
tutorial example. So what could be the possible problems?

Thanks in advance!

Cheers,
Max

On Feb 6, 2008 7:37 PM, Eric Ehlers <[hidden email]> wrote:

>
> Nicola Jean wrote:
>
> > In your stock.xml do you have something like this?
> > <Parameter name='quote'>
> > In this case change it to
> > <Parameter name='Quote'>
> > that's what the error message is telling you.
> > For the reason of having all the parameter names starting with a capital
> > letter
> > probably Eric might give us some insight.
>
> Eric Ehlers wrote:
>
> > The requirement was introduced to enforce consistency with the Excel
> > Function Wizard which uppercases the first letter of every parameter name
> > whether you like it or not.
>
> Regards,
> Eric
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users