Login  Register

Re: Problem in extending QuantLibXL functionality

Posted by Eric Ehlers-2 on Feb 06, 2008; 11:37am
URL: http://quantlib.414.s1.nabble.com/Problem-in-extending-QuantLibXL-functionality-tp5520p5521.html

Hello,

[resending quantlib-dev response to quantlib-users]

Max wrote:

> Hi,
>
> I am trying to follow the online tuturial to add a new function to
> QuantLibXL:
> http://quantlib.sourceforge.net/quantlibaddin/extend_tutorial.html
>
> I have created the following files:
> QuantLibAddin\qlo\stock.hpp (added to project QuantLibObjects)
> QuantLibAddin\qlo\stock.cpp (added to project QuantLibObjects)
> QuantLibAddin\gensrc\metadata\Functions\stock.xml (added to project
> qlgensrc)
>
> And edit the file QuantLibAddin\gensrc\config\categories.xml by adding
> this line:
>     <categoryName>stock</categoryName>
> (without this step, rebuilding project qlgensrc is fine but no new
> files are generated)
>
> However when I rebuild project qlgensrc, the following error occurs:
> ------------------------------------------------------------------------------------------------------------------------------
> Performing Makefile project actions
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
> Copyright (C) Microsoft Corporation.  All rights reserved.
>  if not exist build\vc mkdir build\vc
>  ..\..\gensrc\gensrc.py -a
>>
>> gensrc has encountered a fatal error.
>>
>> >>>>>>>>>> BEGIN STACK TRACE >>>>>>>>>>
>   File "d:\build_ql_0_9_0\gensrc\gensrc.py", line 102, in
>     addinList = addinlist.AddinList(addinIds)
>   File "d:\build_ql_0_9_0\gensrc\gensrc\Addins\addinlist.py", line

[snip]

>> <<<<<<<<<<  END STACK TRACE  <<<<<<<<<<
>>
>> gensrc error:
>>
>> The string "quote" is not a valid parameter name -
>> All parameter names must begin with an uppercase letter.
>>
> NMAKE : fatal error U1077: '..\..\gensrc\gensrc.py' : return code '0x1'
> Stop.
> Project : error PRJ0019: A tool returned an error code from
> "Performing Makefile project actions"
> ------------------------------------------------------------------------------------------------------------------------------
>
> Any help? Thanks in advance!
>
> Cheers,
> Max

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