|
From: Luigi B. <lui...@gm...> - 2015-04-29 08:55:24
|
Hello,
<sigh> boost::bind again. Sometimes it breaks from one Boost version to
the next.</sigh>
We have a fix in the latest code, but it didn't make it into a release yet.
You can either:
- get the unreleased code from GitHub;
- use QuantLib 1.5 and stick with Boost 1.57 for the time being;
- use QuantLib 1.5, but apply the patch at <
https://github.com/lballabio/quantlib/commit/659addb2400442b356b1c194bf331cdc8bbb3c1d>
first.
Luigi
On Tue, Apr 28, 2015 at 5:02 PM, Nigel Sperinck <nig...@gm...>
wrote:
> QuantLib Developers,
>
> My attempt to install QuantLib on Ubuntu 14.04.2 LTS Desktop appear to
> have failed. The available information is as follows:
>
> *operating system:*
>
> Ubuntu 14.04.2 LTS Desktop
>
> *compiler (version number, patch level, etc.):*
>
> g++ version -gnu --host=x86_64_linux-gnu
>
> gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
>
> *Boost version:*
>
> boost 1.58.0
>
> *the compilation error and the file affected:*
>
> appears to be
> QuantLib/QuantLib-1.5/ql/experimental/math/convolvedstudentt.cpp or hpp
>
> make install error reported:
>
> Making install in math
>
> make[3]: Entering directory
> `/home/nigel/Transfer/QuantLib/QuantLib-1.5/ql/experimental/math'
>
> /bin/bash ../../../libtool --tag=CXX --mode=compile g++
> -DHAVE_CONFIG_H -I. -I../../../ql -I../../.. -I../../.. -g -O2 -MT
> convolvedstudentt.lo -MD -MP -MF .deps/convolvedstudentt.Tpo -c -o
> convolvedstudentt.lo convolvedstudentt.cpp
>
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../ql -I../../..
> -I../../.. -g -O2 -MT convolvedstudentt.lo -MD -MP -MF
> .deps/convolvedstudentt.Tpo -c convolvedstudentt.cpp -fPIC -DPIC -o
> .libs/convolvedstudentt.o
>
> convolvedstudentt.cpp: In member function 'QuantLib::Real
> QuantLib::InverseCumulativeBehrensFisher::operator()(QuantLib::Probability)
> const':
>
> convolvedstudentt.cpp:194:29: error: call of overloaded
> 'bind(QuantLib::Probability
> (QuantLib::CumulativeBehrensFisher::*)(QuantLib::Real)const,
> QuantLib::CumulativeBehrensFisher&, boost::arg<1>&)' is ambiguous
>
> distrib_, _1)), accuracy_, (xMin+xMax)/2., xMin, xMax);
>
> ^
>
> convolvedstudentt.cpp:194:29: note: candidates are:
>
> In file included from /usr/local/include/boost/bind.hpp:22:0,
>
> from convolvedstudentt.cpp:30:
>
> /usr/local/include/boost/bind/bind.hpp:1602:5: note: boost::_bi::bind_t<R,
> F, typename boost::_bi::list_av_2<A1, A2>::type> boost::bind(F, A1, A2)
> [with R = double; F = double
> (QuantLib::CumulativeBehrensFisher::*)(double)const; A1 =
> QuantLib::CumulativeBehrensFisher; A2 = boost::arg<1>; typename
> boost::_bi::list_av_2<A1, A2>::type =
> boost::_bi::list2<boost::_bi::value<QuantLib::CumulativeBehrensFisher>,
> boost::arg<1> >]
>
> BOOST_BIND(F f, A1 a1, A2 a2)
>
> ^
>
> /usr/local/include/boost/bind/bind_mf_cc.hpp:74:5: note:
> boost::_bi::bind_t<R, boost::_mfi::cmf1<R, T, A1>, typename
> boost::_bi::list_av_2<A1, A2>::type> boost::bind(R (T::*)(B1)const, A1, A2)
> [with R = double; T = QuantLib::CumulativeBehrensFisher; B1 = double; A1 =
> QuantLib::CumulativeBehrensFisher; A2 = boost::arg<1>; typename
> boost::_bi::list_av_2<A1, A2>::type =
> boost::_bi::list2<boost::_bi::value<QuantLib::CumulativeBehrensFisher>,
> boost::arg<1> >]
>
> BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const, A1 a1, A2 a2)
>
> ^
>
> /usr/local/include/boost/bind/bind_mf_cc.hpp:96:5: note:
> boost::_bi::bind_t<Rt2, boost::_mfi::cmf1<R, T, B1>, typename
> boost::_bi::list_av_2<A1, A2>::type> boost::bind(R (T::*)(B1)const, A1, A2)
> [with Rt2 = double; R = double; T = QuantLib::CumulativeBehrensFisher; B1 =
> double; A1 = QuantLib::CumulativeBehrensFisher; A2 = boost::arg<1>;
> typename boost::_bi::list_av_2<A1, A2>::type =
> boost::_bi::list2<boost::_bi::value<QuantLib::CumulativeBehrensFisher>,
> boost::arg<1> >]
>
> BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const, A1 a1, A2 a2)
>
> ^
>
> make[3]: *** [convolvedstudentt.lo] Error 1
>
> make[3]: Leaving directory
> `/home/nigel/Transfer/QuantLib/QuantLib-1.5/ql/experimental/math'
>
> make[2]: *** [install-recursive] Error 1
>
> make[2]: Leaving directory
> `/home/nigel/Transfer/QuantLib/QuantLib-1.5/ql/experimental'
>
> make[1]: *** [install-recursive] Error 1
>
> make[1]: Leaving directory `/home/nigel/Transfer/QuantLib/QuantLib-1.5/ql'
>
> make: *** [install-recursive] Error 1
>
> nigel@nigel-SATELLITE-02:~/Transfer/QuantLib/QuantLib-1.5$
>
> Very best regards
> Nigel Sperinck
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> QuantLib-dev mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-dev
>
>
--
<http://leanpub.com/implementingquantlib/>
<http://implementingquantlib.com>
<http://twitter.com/lballabio>
|