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 in
> 4>function "void __cdecl unregisterQlFunctions(struct xloper const
> 4>&)" (?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
>