Hi,
I use qlgensrc project from 1.2.0 version I would like to expose functions to Cpp Client, but errors occur from Python Code when I rebuild qlgensrc project: For these following functions: qlYieldTSForwardRate qlYieldTSDiscount qlTSZeroRate qlCalendarAdvance Each time visual displays: gensrc has encountered a fatal error. 1>> 1>> >>>>>>>>>> BEGIN STACK TRACE >>>>>>>>>> 1>> 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc.py", line 125, in <module> 1>> addinList.generate() 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\addins\addinlist.py", line 74, in generate 1>> self.generateCode() 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\addins\addinlist.py", line 83, in generateCode 1>> addin.generate(self.categoryList_, self.enumerationList_) 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\addins\cpp.py", line 55, in generate 1>> self.generateFunctions() 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\addins\cpp.py", line 71, in generateFunctions 1>> bufferCpp += self.generateFunction(func) 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\addins\cpp.py", line 92, in generateFunction 1>> 'functionBody' : func.generateBody(self), 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\functions\member.py", line 43, in generateBody 1>> return self.behavior_.generateBody(addin) 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\functions\behaviorloop.py", line 50, in generateBody 1>> 'inputParam' : addin.loopName(self.loopParamRef_), 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc\addins\cpp.py", line 110, in loopName 1>> if param.type() == common.STRING: 1>> 1>> <<<<<<<<<< END STACK TRACE <<<<<<<<<< 1>> 1>> gensrc error: 1>> 'Parameter' object has no attribute 'type' 1>> 1>> NMAKE : fatal error U1077: '..\..\gensrc\gensrc.py' : return code '0x1' 1>Stop. 1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions" 1>Build log was saved at "file://c:\QL\QuantLib-1.4\build_ql_1_4_0\QuantLibAddin\gensrc\build\vc\BuildLog.htm" 1>qlgensrc - 2 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Hello,
> I use qlgensrc project from 1.2.0 version > 1>> File "c:\QL\QuantLib-1.4\build_ql_1_4_0\gensrc\gensrc.py", line You say you are using gensrc 1.2, but the error indicates version 1.4 - are you mixing two different versions? That would not work. > I would like to expose functions to Cpp Client, but errors occur > from Python Code when I rebuild qlgensrc project: > For these following functions: I am not sure I understand. If I remember correctly, under 1.2, the C++ addin compiles out of the box. Are you modifying that? What did you change? Kind Regards, Eric =================================================== Eric Ehlers nazcatech sprl | Brussels | http://www.nazcatech.be * Distributed computing for pricing analytics * Use Microsoft Excel as a client to the Grid ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Free forum by Nabble | Edit this page |