test suite link error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

test suite link error

Piotr Gregor
This post was updated on .
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?
Reply | Threaded
Open this post in threaded view
|

Re: test suite link error

Luigi Ballabio
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 <[hidden email]> 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.
>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: test suite link error

Piotr Gregor

yes, these files are present in ql/math/randomnumbers/
why always me?
Reply | Threaded
Open this post in threaded view
|

Re: test suite link error

Luigi Ballabio
On Wed, Feb 8, 2012 at 10:27 PM, cf16 <[hidden email]> 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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: test suite link error

Piotr Gregor


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
why always me?