Login  Register

Error in qlgensrc project

Posted by Codron Clément on Jun 11, 2014; 9:00am
URL: http://quantlib.414.s1.nabble.com/Error-in-qlgensrc-project-tp15449.html

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 ==========


Best Regards

Clement


------------------------------------------------------------------------------
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