- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在CentOS 7下,我使用的是
[idf@node2 QuantLib-1.5]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/opt/rh/devtoolset-3/root/usr --mandir=/opt/rh/devtoolset-3/root/usr/share/man --infodir=/opt/rh/devtoolset-3/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.1-20140922/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.1-20140922/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.9.1 20140922 (Red Hat 4.9.1-10) (GCC)
[idf@node2 QuantLib-1.5]$
使用 Boost.1_58,我在构建 QL 1.5 时遇到以下错误
Making all in math
make[4]: Entering directory `/mnt/gluster/Downloads/QuantLib-1.5/ql/experimental/math'
/bin/sh ../../../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[4]: *** [convolvedstudentt.lo] Error 1
make[4]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql/experimental/math'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql/experimental'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql'
make: *** [all-recursive] Error 1
[idf@node2 QuantLib-1.5]$
和
[idf@node2 math]$ make
/bin/sh ../../../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:54: error: wrong type argument to unary minus
- &CumulativeBehrensFisher::operator (),
^
convolvedstudentt.cpp:196:53: error: wrong type argument to unary plus
+ &CumulativeBehrensFisher::operator(),
^
make: *** [convolvedstudentt.lo] Error 1
[idf@node2 math]$
最佳答案
参见 quantlib users mailing list以及最近的一些消息——简而言之,Boost 1.58(在 QuantLib 1.5 之后发布)产生了一些问题,因此您最好的猜测可能是坚持使用 Boost 1.57。
另一方面,如果您想坚持使用 Boost 1.58,请尝试 this patch .
关于c++ - Quantlib 1.5 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30294288/
我正在尝试在 ubuntu 13.04 中使用 quantlib-swig (1.2) 学习 quantlib (1.3) 和 python 绑定(bind)。作为初学者,我尝试使用 30/360 欧
我有一个以 quantlib 的日期格式定义的日期列表。我怎样才能将这些转换成日期时间格式。我问的原因是,我想绘制它,但收到以下错误: TypeError: float() argument must
普通欧洲 EURUSD 看涨期权的 Quantlib 价格与彭博 OVML 价格不匹配。 例如对于以下选项 Quantlib 值 =4.60991,BBG 值 =4.6137,错误 =0.0038(虽
普通欧洲 EURUSD 看涨期权的 Quantlib 价格与彭博 OVML 价格不匹配。 例如对于以下选项 Quantlib 值 =4.60991,BBG 值 =4.6137,错误 =0.0038(虽
我试图让 QL 在 Debian 上运行,但在最后一步失败了。我已经下载了源代码,构建并安装了库(“make”、“make install”),没有任何错误,但是我使用 QuantLib 库的应用程序
我已经在 visual studio 2010 中从他们的网站下载并构建了 QuantLib(在谷歌上搜索 quantlib 并检查安装链接)。但是因为我对 C++ 的了解很少,所以我想使用 SWIG
我在 ubuntu16.04 上通过 apt-get install 从官方源安装了 boost。然后按照 QuantLib 的安装指南进行操作 然后我复制一个 quantlib 示例 (Exampl
我已经通过二进制文件安装了 boost 库 v1.57.0 (x64),它在我的 VS2010Pro 下可以正常工作。 但是,当我尝试编译最新版本 (v1.5) 的 QuantLib 时,通过打开 Q
我从 github 下载了 Quantlib-SWIG 1.12.x 和 Quantlib 1.12.x。 Quantlib 编译时没有问题。这些示例正常运行。但是,当运行 python setup.
我检查这个slides但仍然没有得到: 1) what problem does Handle sovled? 2) what is the benefit to add the Handle cla
我正在一个项目中使用 Quantlib 来执行一些债券计算,例如 yield 和久期。插入上市日期到期日、面值、日历、天数惯例等并得出 yield 和持续时间值相当简单。 看起来给定发行日期、到期日期
当我使用 Quantlib 为普通利率掉期定价时,每笔现金流的支付日期始终与应计期结束日期相同。这是我通常用来设置普通交换的方式: Schedule fixedSchedule(previousRes
我正在尝试学习 QuantLib,这是我的第一个程序,我打算用它来检查我的环境是否正常并且我能够链接到 quantlib: #include using namespace QuantLib; in
我正在尝试构建 QuantLib 但是,在运行构建过程时,它返回 18 次成功和 1 次失败(解决方案中的 19 个项目)。失败的应该是 testsuite。我正在根据其网站说明构建一个 x64 版本
我正在使用 QuantLib 1.7.1 并尝试运行这些代码: Date begin(30, September, 2009), end(15, Jun, 2012); Calendar myCal
我正在学习如何使用 quantlib 为衍生品定价。将一些 Quantlib 特定类输出到控制台窗口的最佳方法是什么?例如 shared_ptr forwardCurve(new Interpolat
下面是我使用 Quantlib blackvariance 曲面的代码。但它提示。你能建议吗?在这个函数中,我用 6 个变量调用 Blackvariance 函数 from QuantLib impo
在 quantlib ( http://quantlib.org ) 上有好的入门文档吗?这些示例没有很好的记录,帮助也没有提供太多见解。 最佳答案 还有 数百个单元测试, 一打或更多的例子 超过 1
我开始使用 C++ 中的 Quantlib 并尝试运行示例代码。我一直在关注 中的教程 https://www.youtube.com/watch?v=Wn_D19c2ABU&t=569s 当他在 5
我也在 Wilmott 上发布了这个,不确定哪个会得到更多的回应。 我对 Quantlib(和 C++ ......)的世界还比较陌生,所以也许这是很明显的。我试图弄清楚 Quantlib 是否可以为
我是一名优秀的程序员,十分优秀!