Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 VS2019 中构建了源代码中提供的 MPIR 和 MPFR 库.sln。
.sln
基本示例已构建并运行良好。但是,以下内容:
cout << __gmp_bits_per_limb << endl; cout << gmp_version << endl;
报告缺少链接符号。
第一个对我来说很重要CGAL::Gmpfr。
CGAL::Gmpfr
我目前的补救措施是定义
const int __gmp_bits_per_limb = 64;
但我没有费心去阅读这个数字的含义,默认值是什么(?)。
它是 GMP 多精度计算的基本“数字”大小:32 位机器上为 32,64 位机器上为 64。有关GMP(以及 MPIR)的肢体的解释,请参见此处和此处。
请注意,如果构建系统正常工作,您应该已经在.h包含文件中定义了这些符号。
.h