|
From: Max <ma...@gm...> - 2008-02-06 06:41:22
|
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 127, in __init__ self.categoryList_ = categorylist.CategoryList() File "d:\build_ql_0_9_0\gensrc\gensrc\Categories\categorylist.py", line 72, in __init__ self.loadCategories(self.addinCategoryNames_, environment.config().addinFunctions()) File "d:\build_ql_0_9_0\gensrc\gensrc\Categories\categorylist.py", line 57, in loadCategories cat = utilities.serializeObject(category.Category, catDir + categoryName) File "d:\build_ql_0_9_0\gensrc\gensrc\Utilities\utilities.py", line 30, in serializeObject objectInstance.serialize(serializer) File "d:\build_ql_0_9_0\gensrc\gensrc\Categories\category.py", line 100, in serialize serializer.serializeObjectDict(self, function.Function) File "d:\build_ql_0_9_0\gensrc\gensrc\Serialization\xmlreader.py", line 161, in serializeObjectDict objectInstance.serialize(self) File "d:\build_ql_0_9_0\gensrc\gensrc\Functions\constructor.py", line 70, in serialize super(Constructor, self).serialize(serializer) File "d:\build_ql_0_9_0\gensrc\gensrc\Functions\function.py", line 128, in serialize serializer.serializeObject(self, parameterlist.ParameterList) File "d:\build_ql_0_9_0\gensrc\gensrc\Serialization\xmlreader.py", line 119, in serializeObject objectInstance.serialize(self) File "d:\build_ql_0_9_0\gensrc\gensrc\Parameters\parameterlist.py", line 89, in serialize serializer.serializeObjectList(self, parameter.Parameter) File "d:\build_ql_0_9_0\gensrc\gensrc\Serialization\xmlreader.py", line 134, in serializeObjectList objectInstance.postSerialize() File "d:\build_ql_0_9_0\gensrc\gensrc\Parameters\parameter.py", line 143, in postSerialize raise exceptions.ParameterNameCapitalizationException(self.name_) > <<<<<<<<<< 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 |