Re: Failure to compile QuantLib with Boost 1.60.0
Posted by
Richard Gomes-2 on
Jan 20, 2016; 1:27am
URL: http://quantlib.414.s1.nabble.com/Failure-to-compile-QuantLib-with-Boost-1-60-0-tp17267p17274.html
Hello Luigi,
I was using 1.6.1. I've tried 1.6.2 and I was able to build it.
Well spotted!
Thanks a lot for your help.
Richard Gomes
On 19/01/16 08:46, Luigi Ballabio
wrote:
Hello Richard,
this should have been fixed back in version 1.6.2.
What version are you using?
Luigi
Hello,
I've built Boost 1.60.0 and installed it under /usr/local.
Then I've tried to build QuantLib like this:
./configure --prefix=/usr/local
--with-boost-include=/usr/local/include
--with-boost-lib=/usr/local/lib
... and after 2 hours I see this :-( :
garch.cpp: In static member function ‘static void
GARCHTest::testCalibration()’:
garch.cpp:85:39: error: reference to ‘tolerance’ is ambiguous
CHECK(calibrated, cgarch1, alpha, tolerance);
^
garch.cpp:58:54: note: in definition of macro ‘CHECK’
if (std::fabs(results.member - garch.member()) >
tolerance) { \
^
garch.cpp:54:17: note: candidates are: QuantLib::Real
{anonymous}::tolerance
static Real tolerance = 1e-6;
^
In file included from
/usr/local/include/boost/test/tools/fpc_op.hpp:19:0,
from
/usr/local/include/boost/test/test_tools.hpp:54,
from
/usr/local/include/boost/test/unit_test.hpp:18,
from garch.hpp:23,
from garch.cpp:20:
So, seems like it's confusing ``tolerance`` defined in
garch.cpp with
another ``tolerance`` declared somewhere else.
Thoughts?
Thanks a lot,
--
Richard Gomes
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application
Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just
$35/Month
Monitor end-to-end web transactions and take corrective
actions now
Troubleshoot faster and improve end-user experience. Signup
Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users