Login  Register

Re: QuantLibXL prerelease version build failed on Visual Studio 2010

Posted by Eric Ehlers-3 on Oct 20, 2016; 8:21am
URL: http://quantlib.414.s1.nabble.com/QuantLibXL-prerelease-version-build-failed-on-Visual-Studio-2010-tp17814p17818.html

Hi Hans,

The updated file that I sent you includes a fix for this error.  But
because of the way you unzipped the new file over the old, the compiler
doesn't detect the change, so you have to force a recompile of the
relevant file.  (The same thing happened to me).

    QuantLibAddin/qlo/interpolation.cpp

If you recompile that file, then build the solution again, I think it
will work.

Kind Regards,
Eric

On Thu, 20 Oct 2016 06:17:49 +0000
杨 斯涵 <[hidden email]> wrote:

> Hi Eric,
>
>
> Thank you for your help!
>
>
> The problem of lacking file has been solved. I have updated the
> QuantLibAddin and
> QuantLibXL(https://sourceforge.net/projects/quantlib/files/QuantLibXL/prerelease/
> + QuantLibAddin-1.8.0.zip & QuantLibXL-1.8.0.zip) I rebuilded the
> QuantLibXL again and it still exists some problems. I put the error
> message below:
>
>
> 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(interpolation.obj) : error
> 4>LNK2005: "public: static unsigned int const
> 4>QuantLib::Linear::requiredPoints" (?requiredPoints@Linear@QuantLib@@2IB)
> 4>already defined in cmsmarketcalibration.obj
> 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(interpolation.obj) : error
> 4>LNK2005: "public: static unsigned int const
> 4>QuantLib::Cubic::requiredPoints" (?requiredPoints@Cubic@QuantLib@@2IB)
> 4>already defined in correlation.obj
> 4>     Creating
> 4> library .\buildStatic\vc100\Debug/QuantLibXL-vc100-mt-gd-1_8_0.lib
> 4> and
> 4> object .\buildStatic\vc100\Debug/QuantLibXL-vc100-mt-gd-1_8_0.exp
> 4>..\xll\QuantLibXL-vc100-mt-gd-1_8_0.xll : fatal error LNK1169: one
> 4>or more multiply defined symbols found
>
>
> Could you please help me solve this?
>
>
> Best wishes
>
> Hans
>
> ________________________________
> 发件人: Eric Ehlers <[hidden email]>
> 发送时间: 2016年10月19日 19:05:42
> 收件人: 杨 斯涵
> 抄送: [hidden email]
> 主题: Re: [Quantlib-users] QuantLibXL prerelease version build failed
> on Visual Studio 2010
>
> Hi Hans,
>
> Many thanks for helping us to test the prerelease.
>
> I applied some fixes to the following files: QuantLibAddin-1.8.0.zip,
> QuantLibXL-1.8.0.zip. Could you please download those again and try
> the build again and let us know if it's OK?
>
> Kind Regards,
> Eric
>
> On Wed, 19 Oct 2016 07:19:23 +0000
> 杨 斯涵 <[hidden email]> wrote:
>
> > Hello all,
> >
> >
> > I recently tried to install QuantLibXL downloaded from
> > sourceforge(using files from
> > https://sourceforge.net/projects/quantlib/files/QuantLibXL/prerelease/
> > + Quantlib 1.8.1).
> >
> >
> > However when building the QuantLibXL, I have encountered two
> > problems:
> >
> >
> >
> > 1) missing file error:  qlo/models.hpp can not be found. When i
> > commented this line, the build can continue. So is this line useless
> > or the models.hpp is forgot to check in?
> >
> >
> > path: QuantLibAddin\qlo\shortratemodels.hpp
> >
> > #include <qlo/termstructures.hpp>
> > #include <qlo/models.hpp>
> >
> >
> >
> >
> > 2) After i commented the line of 'include qlo/models' and rebuild
> > the whole solution again, I get the following error message at the
> > final step and dont know what is going wrong
> >
> >
> > 4>Link:
> > 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(interpolation.obj) : error
> > 4>LNK2005: "public: static unsigned int const
> > 4>QuantLib::Linear::requiredPoints" (?requiredPoints@Linear@QuantLib@@2IB)
> > 4>already defined in cmsmarketcalibration.obj
> > 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(interpolation.obj) : error
> > 4>LNK2005: "public: static unsigned int const
> > 4>QuantLib::Cubic::requiredPoints" (?requiredPoints@Cubic@QuantLib@@2IB)
> > 4>already defined in correlation.obj
> > 4>     Creating
> > 4> library .\buildStatic\vc100\Debug/QuantLibXL-vc100-mt-gd-1_8_0.lib
> > 4> and
> > 4> object .\buildStatic\vc100\Debug/QuantLibXL-vc100-mt-gd-1_8_0.exp
> > 4>register_all.obj : error LNK2019: unresolved external symbol "void
> > 4>__cdecl registerCalibrationhelpers(struct xloper const
> > 4>&)" (?registerCalibrationhelpers@@YAXABUxloper@@@Z) referenced in
> > 4>function "void __cdecl registerQlFunctions(struct xloper const
> > 4>&)" (?registerQlFunctions@@YAXABUxloper@@@Z) register_all.obj :
> > 4>error LNK2019: unresolved external symbol "void __cdecl
> > 4>unregisterCalibrationhelpers(struct xloper const
> > 4>&)" (?unregisterCalibrationhelpers@@YAXABUxloper@@@Z) referenced
> > 4>in function "void __cdecl unregisterQlFunctions(struct xloper
> > 4>const &)" (?unregisterQlFunctions@@YAXABUxloper@@@Z)
> > 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(serializationfactory.obj) :
> > 4>error LNK2019: unresolved external symbol "void __cdecl
> > 4>QuantLibAddin::register_calibrationhelpers(class
> > 4>boost::archive::xml_oarchive
> > 4>&)" (?register_calibrationhelpers@QuantLibAddin@@YAXAAVxml_oarchive@archive@boost@@@Z)
> > 4>referenced in function "void __cdecl
> > 4>QuantLibAddin::tpl_register_classes<class
> > 4>boost::archive::xml_oarchive>(class boost::archive::xml_oarchive
> > 4>&)" (??$tpl_register_classes@Vxml_oarchive@archive@boost@@@QuantLibAddin@@YAXAAVxml_oarchive@archive@boost@@@Z)
> > 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(serializationfactory.obj) :
> > 4>error LNK2019: unresolved external symbol "void __cdecl
> > 4>QuantLibAddin::register_calibrationhelpers(class
> > 4>boost::archive::xml_iarchive
> > 4>&)" (?register_calibrationhelpers@QuantLibAddin@@YAXAAVxml_iarchive@archive@boost@@@Z)
> > 4>referenced in function "void __cdecl
> > 4>QuantLibAddin::tpl_register_classes<class
> > 4>boost::archive::xml_iarchive>(class boost::archive::xml_iarchive
> > 4>&)" (??$tpl_register_classes@Vxml_iarchive@archive@boost@@@QuantLibAddin@@YAXAAVxml_iarchive@archive@boost@@@Z)
> > 4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(register_creators.obj) :
> > 4>error LNK2019: unresolved external symbol "class
> > 4>boost::shared_ptr<class ObjectHandler::Object> __cdecl
> > 4>QuantLibAddin::create_qlSwaptionHelper(class
> > 4>boost::shared_ptr<class ObjectHandler::ValueObject> const
> > 4>&)" (?create_qlSwaptionHelper@QuantLibAddin@@YA?AV?$shared_ptr@VObject@ObjectHandler@@@boost@@ABV?$shared_ptr@VValueObject@ObjectHandler@@@3@@Z)
> > 4>referenced in function "private: void __thiscall
> > 4>QuantLibAddin::SerializationFactory::registerCreators(void)" (?registerCreators@SerializationFactory@QuantLibAddin@@AAEXXZ) ..\xll\QuantLibXL-vc100-mt-gd-1_8_0.xll :
> > 4>fatal error LNK1120: 5 unresolved externals
> > 4>
> > 4>Build FAILED.
> >
> >
> >
> >
> > Could someone please give some advise?
> >
> >
> > Thanks in advance
> >
> >
> > Hans
> >
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users