Login  Register

Re: Failure to compile QuantLib with Boost 1.60.0

Posted by Richard Gomes-2 on Jan 19, 2016; 8:41am
URL: http://quantlib.414.s1.nabble.com/Failure-to-compile-QuantLib-with-Boost-1-60-0-tp17267p17270.html

I'm using version 1.6.1.
Next time I have to remember to mention that. Very well spotted!

Thanks a lot :-)



Richard Gomes
http://rgomes.info/
http://linkedin.com/in/rgomes
UK: +44(77)9955-6813
USA: +1(425)998-2708


Sent using CloudMagic Email
On Tue, Jan 19, 2016 at 8:47 am, Luigi Ballabio <[hidden email]> wrote:

Hello Richard,
this should have been fixed back in version 1.6.2. What version are you using?

Luigi

On Tue, Jan 19, 2016 at 5:04 AM Richard Gomes <[hidden email]> wrote:
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