为什么这样的文件或目录 <cblas.h> 不存在? [英] Why doesn&#39;t such a file or directory, &lt;cblas.h&gt;, exist?

查看:48
本文介绍了为什么这样的文件或目录 <cblas.h> 不存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am doing some matrix multiplication in C and I am trying to compile my progam however it fails to compile for the reason:

没有那个文件或目录 cblas.h

No such file or directory cblas.h

这是我用来编译的命令:

This is the command I am using to compile:

gcc -o BLAS BLAS.c

有人可以帮我吗?我正在服务器上编译这个程序.我不确定这是否有影响.

Can anybody please help me? I am compiling this program on a server. I'm not sure if this makes a difference.

推荐答案

你需要添加一个-I directory选项,其中directory所在的地方cblas.h 文件位于您的系统上.

You need to add a -I directory option where directory is the place where the cblas.h file is located on your system.

这给出:

gcc -o BLAS -I directory_of_cblas_header BLAS.c

这篇关于为什么这样的文件或目录 <cblas.h> 不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆