简体   繁体   English

Visual Studio 2010的多精度

[英]Multiple Precision for Visual Studio 2010

Can anyone suggest a multiple precision library that comes with pre-built windows binaries. 任何人都可以建议一个预先构建的Windows二进制文件附带的多精度库。 I need to use it use with an existing Visual Studio 2010 project (or where I can get pre-built binaries for win7 64bit for GMP). 我需要将它用于现有的Visual Studio 2010项目(或者我可以获得针对GMP的win7 64bit的预构建二进制文件)。

I have tried and failed to compile GMP and MPIR and other projects none of them work with various frustrating and ambiguous errors. 我已经尝试过并且未能编译GMP和MPIR以及其他项目,它们都没有与各种令人沮丧和模棱两可的错误一起工作。 Unfortunately time pressures are getting to me and what I need to implement is simple if I can get the library built/downloaded. 不幸的是,如果我可以建立/下载库,那么时间压力正在向我发展,我需要实现的内容很简单。

I need floating point support so a bigint library is not enough. 我需要浮点支持,所以bigint库是不够的。

Thanks, 谢谢,

http://www.cs.nyu.edu/exact/core/gmp/ has the following package with dlls: http://www.cs.nyu.edu/exact/core/gmp/有以下dll包:

dynamic GMP library and header file for Visual C++: gmp-dynamic-vc-4.1.2.zip 动态GMP库和Visual C ++的头文件: gmp-dynamic-vc-4.1.2.zip

They also have the source project files if you want to try recompiling with a different version at some point. 如果您想尝试在某个时刻使用不同的版本重新编译,它们也有源项目文件。

Your best bet is MPIR. 你最好的选择是MPIR。 I've built MPIR and MPFR using VS 2010 so it is possible. 我使用VS 2010构建了MPIR和MPFR,因此它是可行的。 My Windows system is down at the moment but here are some notes I made. 我的Windows系统目前处于停机状态,但这里有一些笔记。

  1. Download MPIR, unpack, and rename directory to just be "mpir" - remove any version numbers. 下载MPIR,解压缩并重命名目录为“mpir” - 删除任何版本号。

  2. Find and follow the readme file that documents installing VSYASM. 查找并遵循文档安装VSYASM的自述文件。

  3. Run "mpir_config.py" with Python 3.x to create the project files. 使用Python 3.x运行“mpir_config.py”以创建项目文件。

  4. Change the number of parallel builds to 1. 将并行构建的数量更改为1。

  5. Select a particular target (say "lib_mpir_k8") and it should build. 选择一个特定的目标(比如“lib_mpir_k8”),它应该构建。

MPIR also includes a couple of batch files so you can do a command line build using configure.bat and make.bat. MPIR还包含几个批处理文件,因此您可以使用configure.bat和make.bat进行命令行构建。 I find it is easier than the GUI builds. 我发现它比GUI构建更容易。

IIRC, to build MPFR, I had to modify some of the Include directories but my notes are a little too cryptic. IIRC,为了建立MPFR,我不得不修改一些Include目录,但我的笔记有点过于神秘。

The MPIR mailing list is quite helpful, too. MPIR邮件列表也非常有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM