I have boost 1.58.0 and Quantlib-1.5. I am trying to build project “Quantlib” from “QuantLib_vc12” solution file. I get error “error C2668:
'boost::bind' : ambiguous call to overloaded function”
Can someone help me? Details of the error are below: convolvedstudentt.cpp 1>c:\cpplibs\quantlib-1.5\ql\experimental\math\convolvedstudentt.cpp(194): error C2668: 'boost::bind' : ambiguous
call to overloaded function 1> c:\cpplibs\boost_1_58_0\boost\bind\bind_mf_cc.hpp(96): could be 'boost::_bi::bind_t<QuantLib::Real,boost::_mfi::cmf1<QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real>,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>>
boost::bind<QuantLib::Real,QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(R (__thiscall QuantLib::CumulativeBehrensFisher::* )(B1) const,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , R=QuantLib::Probability 1> , B1=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind_mf_cc.hpp(74): or 'boost::_bi::bind_t<QuantLib::Real,boost::_mfi::cmf1<QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real>,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>>
boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(R (__thiscall QuantLib::CumulativeBehrensFisher::* )(B1) const,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , R=QuantLib::Real 1> , B1=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1768): or 'boost::_bi::bind_t<boost::_bi::unspecified,QuantLib::Real,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>>
boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(F,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , F=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1676): or 'boost::_bi::bind_t<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::_bi::list1<boost::arg<1>>>
boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(boost::type<QuantLib::Real>,F,A1)' 1> with 1> [ 1> F=QuantLib::CumulativeBehrensFisher 1> , A1=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1602): or 'boost::_bi::bind_t<QuantLib::Real,QuantLib::Probability
(__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::Probability(__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(F,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , F=QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real)
const 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> while trying to match the argument list '(QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(const QuantLib::Real)
const, QuantLib::CumulativeBehrensFisher, boost::arg<1>)' ------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Boost 1.58 was released after QuantLib 1.5 and is not compatible with it. You can use Boost 1.57 instead. Luigi On Tue, May 12, 2015 at 5:34 PM, Rishi Srivastava, Green Plains Inc. <[hidden email]> wrote:
------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by Rishi Srivastava, Green Plains Inc.
Hi Rishi, I am seeing you are using Boost 1.58. There has been a couple of messages in the QL mailing lists reporting difficulties to build QL with the latest versions of Boost, lately. Maybe you can try out again building QL but using Boost 1.57 this time? Regards,
I have boost 1.58.0 and Quantlib-1.5. I am trying to build project “Quantlib” from “QuantLib_vc12” solution file. I get error “error C2668: 'boost::bind' : ambiguous call to overloaded function”
Can someone help me?
Details of the error are below:
convolvedstudentt.cpp 1>c:\cpplibs\quantlib-1.5\ql\experimental\math\convolvedstudentt.cpp(194): error C2668: 'boost::bind' : ambiguous call to overloaded function 1> c:\cpplibs\boost_1_58_0\boost\bind\bind_mf_cc.hpp(96): could be 'boost::_bi::bind_t<QuantLib::Real,boost::_mfi::cmf1<QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real>,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(R (__thiscall QuantLib::CumulativeBehrensFisher::* )(B1) const,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , R=QuantLib::Probability 1> , B1=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind_mf_cc.hpp(74): or 'boost::_bi::bind_t<QuantLib::Real,boost::_mfi::cmf1<QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real>,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(R (__thiscall QuantLib::CumulativeBehrensFisher::* )(B1) const,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , R=QuantLib::Real 1> , B1=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1768): or 'boost::_bi::bind_t<boost::_bi::unspecified,QuantLib::Real,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(F,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , F=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1676): or 'boost::_bi::bind_t<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::_bi::list1<boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(boost::type<QuantLib::Real>,F,A1)' 1> with 1> [ 1> F=QuantLib::CumulativeBehrensFisher 1> , A1=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1602): or 'boost::_bi::bind_t<QuantLib::Real,QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::Probability(__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(F,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , F=QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> while trying to match the argument list '(QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(const QuantLib::Real) const, QuantLib::CumulativeBehrensFisher, boost::arg<1>)' ------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users ------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Thanks guys. I have moved to visual studio 2013 with boost 1.57 and QL 1.5. I am able to build Quantlib library both debug and release versions from vs 2013.
I am trying to run an example from the quantlib folder: \QuantLib-1.5\Examples\EquityOption
Equityoption.cpp. I am getting following error: LINK : fatal error LNK1104: cannot open file 'QuantLib-vc110-mt-gd.lib' For some reason when I build the source file with associated libraries and headers, it is looking for
'QuantLib-vc110-mt-gd.lib'
while I built
'QuantLib-vc120-mt-gd.lib'. From: [hidden email] [mailto:[hidden email]]
Hi Rishi, I am seeing you are using Boost 1.58. There has been a couple of messages in the QL mailing lists reporting difficulties to build QL with the latest versions of Boost, lately. Maybe you can try out again building QL but using Boost 1.57 this time? Regards,
I have boost 1.58.0 and Quantlib-1.5. I am trying to build project “Quantlib” from “QuantLib_vc12” solution file. I get error “error C2668: 'boost::bind' : ambiguous call to overloaded function” Can someone help me? Details of the error are below: convolvedstudentt.cpp 1>c:\cpplibs\quantlib-1.5\ql\experimental\math\convolvedstudentt.cpp(194): error C2668: 'boost::bind' : ambiguous call to overloaded function 1> c:\cpplibs\boost_1_58_0\boost\bind\bind_mf_cc.hpp(96): could be 'boost::_bi::bind_t<QuantLib::Real,boost::_mfi::cmf1<QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real>,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>>
boost::bind<QuantLib::Real,QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(R (__thiscall QuantLib::CumulativeBehrensFisher::* )(B1) const,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , R=QuantLib::Probability 1> , B1=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind_mf_cc.hpp(74): or 'boost::_bi::bind_t<QuantLib::Real,boost::_mfi::cmf1<QuantLib::Probability,QuantLib::CumulativeBehrensFisher,QuantLib::Real>,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>>
boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(R (__thiscall QuantLib::CumulativeBehrensFisher::* )(B1) const,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , R=QuantLib::Real 1> , B1=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1768): or 'boost::_bi::bind_t<boost::_bi::unspecified,QuantLib::Real,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(F,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , F=QuantLib::Real 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1676): or 'boost::_bi::bind_t<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::_bi::list1<boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(boost::type<QuantLib::Real>,F,A1)' 1> with 1> [ 1> F=QuantLib::CumulativeBehrensFisher 1> , A1=boost::arg<1> 1> ] 1> c:\cpplibs\boost_1_58_0\boost\bind\bind.hpp(1602): or 'boost::_bi::bind_t<QuantLib::Real,QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real)
const,boost::_bi::list2<boost::_bi::value<T>,boost::arg<1>>> boost::bind<QuantLib::Real,QuantLib::Probability(__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const,QuantLib::CumulativeBehrensFisher,boost::arg<1>>(F,A1,A2)' 1> with 1> [ 1> T=QuantLib::CumulativeBehrensFisher 1> , F=QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(QuantLib::Real) const 1> , A1=QuantLib::CumulativeBehrensFisher 1> , A2=boost::arg<1> 1> ] 1> while trying to match the argument list '(QuantLib::Probability (__thiscall QuantLib::CumulativeBehrensFisher::* )(const QuantLib::Real) const, QuantLib::CumulativeBehrensFisher,
boost::arg<1>)' ------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users ------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Is this a clean build? Is it possible that you had already compiled EquityOption.cpp with an earlier compiler? On Tue, May 12, 2015 at 9:21 PM, Rishi Srivastava, Green Plains Inc. <[hidden email]> wrote:
------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
It is a clean build.Linker is looking for
QuantLib-vc110-mt-gd.lib instead of
'QuantLib-vc120-mt-gd.lib From: Luigi Ballabio [mailto:[hidden email]]
Is this a clean build? Is it possible that you had already compiled EquityOption.cpp with an earlier compiler? On Tue, May 12, 2015 at 9:21 PM, Rishi Srivastava, Green Plains Inc. <[hidden email]> wrote:
-- ------------------------------------------------------------------------------ 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-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |