|
From: cf16 <cf1...@gm...> - 2012-02-08 00:51:59
|
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.
--
View this message in context: http://old.nabble.com/test-suite-link-error-tp33282311p33282311.html
Sent from the quantlib-dev mailing list archive at Nabble.com.
|
|
From: Luigi B. <lui...@gm...> - 2012-02-08 12:15:07
|
If you're using a checkout from Subversion, there's the chance that the VC10 project is not updated. Check if <ql/math/randomnumbers/sobolbrownianbridgersg.cpp> is in the project, and if not, add it. Luigi On Wed, Feb 8, 2012 at 1:51 AM, cf16 <cf1...@gm...> wrote: > > 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. > |
|
From: cf16 <cf1...@gm...> - 2012-02-08 21:27:33
|
yes, these files are present in ql/math/randomnumbers/ -- View this message in context: http://old.nabble.com/test-suite-link-error-tp33282311p33289385.html Sent from the quantlib-dev mailing list archive at Nabble.com. |
|
From: Luigi B. <lui...@gm...> - 2012-02-08 21:41:37
|
On Wed, Feb 8, 2012 at 10:27 PM, cf16 <cf1...@gm...> wrote: > yes, these files are present in ql/math/randomnumbers/ I mean in the VC project. Do you see them from Visual Studio when you open the solution? They should be under the "QuantLib" project under math/randomnumbers. Luigi |
|
From: cf16 <cf1...@gm...> - 2012-02-08 23:03:28
|
yes, it was it. I have added "existing item" to QuantLib project in QuantLib_vc10 and it is OK now. thank you very, very much. Piotr -- View this message in context: http://old.nabble.com/test-suite-link-error-tp33282311p33289908.html Sent from the quantlib-dev mailing list archive at Nabble.com. |