Re: test-suite and uBlas

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Linking-problem-with-the-test-suite-tp6398p6404.html

On Wed, 2008-04-09 at 15:55 +0000, Elise Gourier wrote:

> Thank you Luigi. I have uninstalled Dev-C++, reinstalled it, rebuilt
> Boost and now the compilation works fine.
>  
> When I run the test-suite however, I have a problem with the uBlas
> library, I get the following message:
>
> Unknown location(0) : Fatal error in
> “MarketModelSmmCapletAlphaCalibrationTest::testFunction”:
> std::exception this     version of gcc does not support the Boost
> uBlas library

Yes, it was a false report---Dev-C++ should work. You can edit
ql/math/matrix.hpp at line 29, where it says:

#if !defined(__GNUC__) || __GNUC__ > 3 || __GNUC_MINOR__ > 4
#define QL_MATRIX_BLAS
#endif

Remove the check (the #if and #endif) and just leave

#define QL_MATRIX_BLAS

After recompilation, the tests should pass.

Luigi



--

Every solution breeds new problems.
-- unknown



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users