Posted by
Piotr Gregor on
Feb 07, 2012; 10:28pm
URL: http://quantlib.414.s1.nabble.com/test-suite-link-error-tp13463.html
hi all,
so at the beginning I was not able to build test suiteat all, but after rebuild boost by running bootstrap libboost_unit_test_framework lib has been created, but... now I get this linker error:
InitializeBuildStatus:
Touching ".\build\vc100\Win32\Debug\testsuite.unsuccessfulbuild".
ClCompile:
All outputs are up-to-date.
Link:
Creating library bin\QuantLib-test-suite-vc100-mt-gd.lib and object bin\QuantLib-test-suite-vc100-mt-gd.exp
hybridhestonhullwhiteprocess.obj : error LNK2019: unresolved external symbol "public: __thiscall QuantLib::SobolBrownianBridgeRsg::SobolBrownianBridgeRsg(unsigned int,unsigned int,enum QuantLib::SobolBrownianGenerator::Ordering,unsigned long,enum QuantLib::SobolRsg::DirectionIntegers)" (??0SobolBrownianBridgeRsg@QuantLib@@QAE@IIW4Ordering@SobolBrownianGenerator@1@KW4DirectionIntegers@SobolRsg@1@@Z) referenced in function "public: static void __cdecl HybridHestonHullWhiteProcessTest::testZeroBondPricing(void)" (?testZeroBondPricing@HybridHestonHullWhiteProcessTest@@SAXXZ)
hybridhestonhullwhiteprocess.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall QuantLib::SobolBrownianBridgeRsg::dimension(void)const " (?dimension@SobolBrownianBridgeRsg@QuantLib@@QBEIXZ) referenced in function "public: __thiscall QuantLib::MultiPathGenerator<class QuantLib::SobolBrownianBridgeRsg>::MultiPathGenerator<class QuantLib::SobolBrownianBridgeRsg>(class boost::shared_ptr<class QuantLib::StochasticProcess> const &,class QuantLib::TimeGrid const &,class QuantLib::SobolBrownianBridgeRsg,bool)" (??0?$MultiPathGenerator@VSobolBrownianBridgeRsg@QuantLib@@@QuantLib@@QAE@ABV?$shared_ptr@VStochasticProcess@QuantLib@@@boost@@ABVTimeGrid@1@VSobolBrownianBridgeRsg@1@_N@Z)
hybridhestonhullwhiteprocess.obj : error LNK2019: unresolved external symbol "public: struct QuantLib::Sample<class std::vector<double,class std::allocator<double> > > const & __thiscall QuantLib::SobolBrownianBridgeRsg::nextSequence(void)const " (?nextSequence@SobolBrownianBridgeRsg@QuantLib@@QBEABU?$Sample@V?$vector@NV?$allocator@N@std@@@std@@@2@XZ) referenced in function "private: struct QuantLib::Sample<class QuantLib::MultiPath> const & __thiscall QuantLib::MultiPathGenerator<class QuantLib::SobolBrownianBridgeRsg>::next(bool)const " (?next@?$MultiPathGenerator@VSobolBrownianBridgeRsg@QuantLib@@@QuantLib@@ABEABU?$Sample@VMultiPath@QuantLib@@@2@_N@Z)
hybridhestonhullwhiteprocess.obj : error LNK2019: unresolved external symbol "public: struct QuantLib::Sample<class std::vector<double,class std::allocator<double> > > const & __thiscall QuantLib::SobolBrownianBridgeRsg::lastSequence(void)const " (?lastSequence@SobolBrownianBridgeRsg@QuantLib@@QBEABU?$Sample@V?$vector@NV?$allocator@N@std@@@std@@@2@XZ) referenced in function "private: struct QuantLib::Sample<class QuantLib::MultiPath> const & __thiscall QuantLib::MultiPathGenerator<class QuantLib::SobolBrownianBridgeRsg>::next(bool)const " (?next@?$MultiPathGenerator@VSobolBrownianBridgeRsg@QuantLib@@@QuantLib@@ABEABU?$Sample@VMultiPath@QuantLib@@@2@_N@Z)
bin\QuantLib-test-suite-vc100-mt-gd.exe : fatal error LNK1120: 4 unresolved externals
Build FAILED.
Time Elapsed 00:07:23.45
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
/////////////////
moreover, I'm building QuantLib_vc10.sln and every project is beeing created with success, just this test suite becouse of Sobol. I have checked that SobolBrownianBridgeRsg takes different parameters indeed in constructor, but I think it'snot it as it was certainly investigated.
I use QuantLib on a regular basis - there have never been any problems that some externals is unresolved, why this hybridhestonhullwhiteprocess.obj ?
please help.
why always me?