flint/arb.h: 没有那个文件或目录

问题描述 投票:0回答:0

我正在尝试编译这个简单的 FLINT 程序:

#include "flint/arb.h"

int main()
{
    arb_t x;
    arb_init(x);
    arb_const_pi(x, 50 * 3.33);
    arb_printn(x, 50, 0); flint_printf("\n");
    flint_printf("Computed with FLINT-%s\n", flint_version);
    arb_clear(x);
}

https://www.flintlib.org/doc/building.html之后,我通过MSYS安装了它。显然有检测arb.h,当我尝试运行程序时,我得到以下错误:

`flint.c:1:10: fatal error: flint/arb.h: No such file or directory`

以下命令用于运行程序:

gcc flint.c -lflint -lgmp -lmpfr

我尝试了这个命令的不同组合,根据 link,我可以提供标志,例如: -I/path/to/flint -L/path/to/flint,如果 FLINT 头文件和库文件不在标准位置,例如 /usr/local,在我的例子中,arb.h 的路径是“C:\ msys64\usr\local\include”,不确定我是否应该这样做。

c compilation header arb flint
© www.soinside.com 2019 - 2024. All rights reserved.