使用MPFR总结
来源:互联网 发布:江西省软件行业办 编辑:程序博客网 时间:2024/05/30 22:43
由于项目中需要用到大数值相关的运算,所以选择使用MPFR,以下为一些使用总结。
安装过程
安装环境为Centos
相关下载路径:
GMP:https://gmplib.org/download/gmp/gmp-6.1.0.tar.bz2
MPFR:http://www.mpfr.org/mpfr-current/mpfr-3.1.3.tar.gz
1,安装GMP
tar jxvf gmp-6.1.0.tar.bz2
cd gmp-6.1.0/
./configure
make
make check(注意查看有没有error)
make install
2,安装MPFR
tar zxvf mpfr-3.1.3.tar.gz
cd mpfr-3.1.3
./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib (如果上面GMP的为默认安装路径的话)
make
make check(注意查看有没有error)
make install
如何使用
在代码中 #include <mpfr.h>
编译时增加 -lmpfr -lgmp
待续。。。。
相关网站
https://gmplib.org/
http://www.mpfr.org/
0 0
- 使用MPFR总结
- Mingw+Eclipse使用mpfr
- 安装MPFR和GMP
- 编译 mpfr 出错 .configure
- 安装GMP 和 MPFR
- 安装MPFR和GMP
- Mingw+Eclipse+mpfr的c++版本
- gcc mpc mpfr gmp源码包安装
- 调用mpfr的一段示例(极不完整)
- 关于编译MPFR遇到的GMP版本问题
- 使用总结
- 在VS2005下编译CGAL库的支持库GMP和MPFR的步骤
- 打造windows下的嵌入式开发工具(4):mpfr-2.3.1
- RHEL4.0AS GCC升级到4.3.3版本安装MPFR和GMP过程
- CGAL找不到"gmp-vc90-mt-gd.lib"和"mpfr-vc90-mt-gd.lib"
- GCC编译出错Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
- configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.解决方法
- gcc configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0
- 【SPOJ-DYNACON1】Dynamic Tree Connectivity【LCT/并查集】
- SAM
- 三个启蒙寓言解读大企业的内部创业困局
- C++11 右值引用
- startActivity构成的Activity链中间断掉会如何?
- 使用MPFR总结
- “知天命”是什么意思?
- 【bzoj3172】[Tjoi2013]单词 AC自动机+fail树
- PAT-1021 个位数统计
- 使用线程进行网络图片下载(一)
- C#之构造方法
- POJ - 1002 487-3279
- RecyclerView详解 —— 自定义动画
- java调用usb摄像头