Login  Register

QuantLibXL prerelease version build failed on Visual Studio 2010

Posted by 杨 斯涵 on Oct 19, 2016; 5:55am
URL: http://quantlib.414.s1.nabble.com/QuantLibXL-prerelease-version-build-failed-on-Visual-Studio-2010-tp17814.html

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 LNK2005: "public: static unsigned int const QuantLib::Linear::requiredPoints" (?requiredPoints@Linear@QuantLib@@2IB) already defined in cmsmarketcalibration.obj
4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(interpolation.obj) : error LNK2005: "public: static unsigned int const QuantLib::Cubic::requiredPoints" (?requiredPoints@Cubic@QuantLib@@2IB) already defined in correlation.obj
4>     Creating library .\buildStatic\vc100\Debug/QuantLibXL-vc100-mt-gd-1_8_0.lib and object .\buildStatic\vc100\Debug/QuantLibXL-vc100-mt-gd-1_8_0.exp
4>register_all.obj : error LNK2019: unresolved external symbol "void __cdecl registerCalibrationhelpers(struct xloper const &)" (?registerCalibrationhelpers@@YAXABUxloper@@@Z) referenced in function "void __cdecl registerQlFunctions(struct xloper const &)" (?registerQlFunctions@@YAXABUxloper@@@Z)
4>register_all.obj : error LNK2019: unresolved external symbol "void __cdecl unregisterCalibrationhelpers(struct xloper const &)" (?unregisterCalibrationhelpers@@YAXABUxloper@@@Z) referenced in function "void __cdecl unregisterQlFunctions(struct xloper const &)" (?unregisterQlFunctions@@YAXABUxloper@@@Z)
4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(serializationfactory.obj) : error LNK2019: unresolved external symbol "void __cdecl QuantLibAddin::register_calibrationhelpers(class boost::archive::xml_oarchive &)" (?register_calibrationhelpers@QuantLibAddin@@YAXAAVxml_oarchive@archive@boost@@@Z) referenced in function "void __cdecl QuantLibAddin::tpl_register_classes<class boost::archive::xml_oarchive>(class boost::archive::xml_oarchive &)" (??$tpl_register_classes@Vxml_oarchive@archive@boost@@@QuantLibAddin@@YAXAAVxml_oarchive@archive@boost@@@Z)
4>QuantLibObjects-vc100-mt-gd-1_8_0.lib(serializationfactory.obj) : error LNK2019: unresolved external symbol "void __cdecl QuantLibAddin::register_calibrationhelpers(class boost::archive::xml_iarchive &)" (?register_calibrationhelpers@QuantLibAddin@@YAXAAVxml_iarchive@archive@boost@@@Z) referenced in function "void __cdecl QuantLibAddin::tpl_register_classes<class boost::archive::xml_iarchive>(class boost::archive::xml_iarchive &)" (??$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) : error LNK2019: unresolved external symbol "class boost::shared_ptr<class ObjectHandler::Object> __cdecl QuantLibAddin::create_qlSwaptionHelper(class boost::shared_ptr<class ObjectHandler::ValueObject> const &)" (?create_qlSwaptionHelper@QuantLibAddin@@YA?AV?$shared_ptr@VObject@ObjectHandler@@@boost@@ABV?$shared_ptr@VValueObject@ObjectHandler@@@3@@Z) referenced in function "private: void __thiscall QuantLibAddin::SerializationFactory::registerCreators(void)" (?registerCreators@SerializationFactory@QuantLibAddin@@AAEXXZ)
4>..\xll\QuantLibXL-vc100-mt-gd-1_8_0.xll : 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