gpt4 book ai didi

c - 为什么这样的文件或目录 不存在?

转载 作者:太空狗 更新时间:2023-10-29 15:33:34 26 4
gpt4 key购买 nike

我正在用 C 语言做一些矩阵乘法,我正在尝试编译我的程序,但是编译失败,原因是:

No such file or directory cblas.h

这是我用来编译的命令:

gcc -o BLAS BLAS.c

有人可以帮帮我吗?我正在服务器上编译这个程序。我不确定这是否有所作为。

最佳答案

您需要添加一个-I directory 选项,其中directorycblas.h 文件在您系统上的位置。

这给出:

gcc -o BLAS -I directory_of_cblas_header BLAS.c

关于c - 为什么这样的文件或目录 <cblas.h> 不存在?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7874350/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com