|
From: <tar...@li...> - 2011-01-31 14:50:35
|
Hi , may be you can help me on this small homework.... I can build the xll file adding the stock class as explained into the tutorial (http://quantlib.org/quantlibaddin/extend__tutorial.html) What I tried to do it was just insert into the xll a simple inline function (just for a test). The steps I followed are: 1. add in QuantLibAddin/qlo the file myfun.hpp having the content: #ifndef qla_myfun_hpp #define qla_myfun_hpp #include <oh/libraryobject.hpp> namespace QuantLibAddin { inline double myfun(double npv) { return npv; } } #endif 2. then I've added a new category into QuantLibAddin\gensrc\config\categories. xml <categoryName>myfun</Vategoryname> 3. then I added a new xml file into QuantLibAddin\gensrc\metadata\Functions heving the following contents <Category name='myfun'> <description>test</description> <displayName>myfun</displayName> <xlFunctionWizardCategory>QuantLib - Financial</xlFunctionWizardCategory> <includes> <include>qlo/myfun.hpp</include> </includes> <copyright> Copyright (C) 2010 </copyright> <Functions> <Procedure name='qlMyFun'> <alias>QuantLibAddin::myfun</alias> <SupportedPlatforms> <!--SupportedPlatform name='Excel' calcInWizard='false'/--> <SupportedPlatform name='Excel'/> <!--SupportedPlatform name='Cpp'/--> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='npv'> <type>double</type> <tensorRank>scalar</tensorRank> <description>npv value</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>double</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> </Functions> </Category> 4. Then I go to build qlgensrc and I get the following error fatal error U1077: '..\..\gensrc\gensrc.py' : return code '0x1' Any clue? Thanks Regards, Paolo >----Messaggio originale---- >Da: pca...@vo... >Data: 30/01/2011 12.10 >A: <qua...@li...> >Ogg: Re: [Quantlib-dev] R: Re: R: Adding new function to QuantLib XL > >I had the same problem, look here: > > >Hi, this was on this list some weeks ago (Linker Error LNK1106: invalid > >file or disk full, can not seek to ...). > > > >This error can be observed on different machines (with most probably no > >disk problems) and different MSVC versions (at least 2005 and 2008) when > >linking the ql xll. The error is reproduceable on certain "source code > >configurations". > > > >I googled two possible solutions which are > > > >using linker option /OPT:NOICF > >using linker option /IGNOREIDL > > > >The second has no effect in my enviroment, but the first one seems to > >have solved the problem, hopefully forever. > > >since i use /OPT:NOICF the problem disappeared. perhaps this setting >should be done in the released project files also? > >Peter > >Am 30.01.2011 09:04, schrieb tar...@li...: >> Right! >> >> but I got now this strange error: >> >> fatal error LNK1106: invalid file or disk full: cannot seek to 0xEB5C5C >> >> I got this on QuantLibXLStatic >> >> >> it sounds to me quite strange becasue my disk is not full ..I have more than >> 30 GB free >> >> any clue? >> thansk again, >> Paolo >> >>> ----Messaggio originale---- >>> Da: eri...@na... >>> Data: 29/01/2011 21.39 >>> A: "tar...@li..."<tar...@li...> >>> Cc:<qua...@li...> >>> Ogg: Re: [Quantlib-dev] R: Adding new function to QuantLib XL >>> >>> Hi Paolo, >>> >>>>> is there any repository where I can find similar examples ? >>> Sorry, the tutorial you found is all we got. >>> >>>> following the example in the website I've previously stated, I can do >>>> everithing till when I need to build quantlibxl which returns me the >>>> following >>>> errors >>> Looks like you omitted to add file(s) to the projects. If you follow >>> the tutorial exactly as written it should compile fine. >>> >>> Regards, >>> Eric >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better price- free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> QuantLib-dev mailing list >> Qua...@li... >> https://lists.sourceforge.net/lists/listinfo/quantlib-dev > > >------------------------------------------------------------------------------ >Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >Finally, a world-class log management solution at an even better price-free! >Download using promo code Free_Logger_4_Dev2Dev. Offer expires >February 28th, so secure your free ArcSight Logger TODAY! >http://p.sf.net/sfu/arcsight-sfd2d >_______________________________________________ >QuantLib-dev mailing list >Qua...@li... >https://lists.sourceforge.net/lists/listinfo/quantlib-dev > |